Reputation: 187
I have an existing multi-threaded C++ program which uses a pool of sockets for read and write. The sender thread sends HTTP requests using the next available socket. The receiver therad polls the pool of sockets (using the poll() method) and read the HTTP responses. How the receiver thread can detect a possible HTTP response timeout from a socket of the pool?
Upvotes: 0
Views: 743
Reputation: 67713
Quick example off the top of my head:
Upvotes: 2