Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows XP/ Windows Server 2003 , crash after requesting http data #460

Closed
thoys opened this issue Aug 25, 2015 · 2 comments
Closed

Windows XP/ Windows Server 2003 , crash after requesting http data #460

thoys opened this issue Aug 25, 2015 · 2 comments

Comments

@thoys
Copy link
Contributor

thoys commented Aug 25, 2015

when using the websocketpp::serverwebsocketpp::config::asio_tls http_handler . and a connection is made. This times out after a while. Which cause a cancel event being called on the socket. This is not supported in Windows XP and Windows Server 2003 even if compiled on a different OS.

My workaround is to define BOOST_ASIO_ENABLE_CANCELIO , see http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/using.html for more info.

zaphoyd pushed a commit that referenced this issue Aug 25, 2015
…s canceled on Windows XP #460

This fix switches to using the non-exception variant of socket::cancel
and logging the error instead of throwing it. There is a chance that
something else will need to be addressed as a result of this change as
some async operations might not be cancelled? I believe everything in
question has timeouts that will trigger operation cancellation at some
point anyways.
@zaphoyd
Copy link
Owner

zaphoyd commented Aug 25, 2015

I've pushed an update to develop that may resolve this issue by handling this error within the libraries logging framework rather than throwing an exception and dying.

@thoys
Copy link
Contributor Author

thoys commented Aug 25, 2015

Yep this fixed it! Thanks!

@thoys thoys closed this as completed Aug 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants