Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Win10][1.7.3] Poco::Net::NoMessageException raised few seconds after HTTP/GET #1293
I'm building a simple web server using Poco with Visual Studio 2015 on Windows 10.
A Poco::Net::NoMessageException is raised few seconds (approx. 15 secs) after connecting to this server with a web browser. It will happen again after refreshing the page; its doing this after each connection.
I didn't find anything in documentation, forum, stackoverflow. It would be very helpful to have a description in documentation of how/when/why these exceptions coming from deep inside the library are raised.
I also tried a
Thanks for helping me out
Normally this exception can be safely ignored. It happens when the web server tries to read the next HTTP request header from the socket, but does not receive one because the connection is closed by the client. The reason for this is keep-alive handling: Browser and server keep the connection open after a request in case further requests will be sent, to avoid having to create a new socket connection for each request. However, there's no way to orderly close a keep alive connection after a timeout, other than simply closing the connection, which usually leads to this exception. The exception is handled (ignored) internally and should not leak to the outside.