Is there any way to determine if the connection was lost durring a long running chunked http session?
Code: Select all
std::ostream& ostr = response.send(); // get output stream
ostr << "hello"; // write to the output stream
// ostr.good() is != true as soon as the client disconnects.
bakercp wrote:My problem comes when the server thread is being cleaned up. I am using 1.4.3 on OSX and my program dies with a SIGPIPE error after the HTTPRequestHandler has been destroyed. Not sure why and perhaps it is fixed in a newer version of Poco.
Users browsing this forum: No registered users and 1 guest