-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
set_http_handler and TLS server #295
Comments
Looks like everything was processed correctly, but that the logging code was logging a normally ending HTTP connection as a failed websocket connection. I've pushed an update that should suppress some of the log messages for HTTP connections. Let me know if you see an improvement. |
Great! Thanks!! [2013-10-13 15:19:24] [connect] HTTP Connection [::ffff:127.0.0.1]:60098 "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0" /favicon.ico 200 Many thanks |
With the latest commits errors (this time different error system:125) are shown again: [2013-10-21 22:00:59] [connect] HTTP Connection [::ffff:127.0.0.1]:60098 "Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0" /favicon.ico 200 Could it be related to "additional support for compile time disabling of multithreading features"? great multithreading feature! but when using the http handler one http request is handled correctly and the another gives errors and nothing get send to the browser. Many thanks |
When using the http handler (echo_server.set_http_handler(bind(&http_func,&echo_server,::_1));) in the asio_tls config like the Echo Server TLS example I get the followings error ever time a http request has been handled:
[2013-10-10 20:04:25] [connect] HTTP Connection [::ffff:127.0.0.1]:41053 "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36" /images/bkg-img.png 200
[2013-10-10 20:04:25] [error] Handshake ended with HTTP error: 200
end later on (after the Timer Expired on the http request/connection) the following error is shown based on the earlier http request:
[2013-10-10 20:04:30] [error] Timer Expired
[2013-10-10 20:04:30] [disconnect] Failed: HTTP connection ended
Seems like the HTTP handler in a TLS/wss scenario is not correctly processed?
Many thanks
The text was updated successfully, but these errors were encountered: