Boost logo

Boost Users :

Subject: [Boost-users] Boost::asio - how to detect if a remote sockets client has disconnected
From: Alex Black (alex_at_[hidden])
Date: 2009-07-24 14:52:35


Is there a good way to do this?

My server is a basic HTTP server, and if the client has disconnected
while I'm still processing their request I'd like to abort the
processing (e.g. no point doing work if the client is not there waiting
for the data).

I've read I can try to read from the socket, but in HTTP the client
sends the request, and doesn't write any more to the socket.

- Alex


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net