-
Notifications
You must be signed in to change notification settings - Fork 226
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
wss HttpTooLargeError #23
Comments
So after some painful debugging, this isn't really a problem with this library. The error that is being returned by hyper (HttpTooLargeError) is incorrect. When the error is returned, the request is actually too small (0 or 1 bytes in my case) and hyper fails to parse the headers and returns the incorrect error. I was using Chrome as the websocket client while testing this with an invalid certificate (using it on localhost), which for some reason when it connects to the websocket server, it gets rejected the first time (which is where the 0 byte request comes from) then opens the connection again and works the 2nd time. |
Yes, I was trying to debug this as well. I'm thinking this might have something to do with hyper #389, although that one is about clients not servers. |
The error was in |
@seanmonstar Thanks! |
I tried running the "secure server" example at http://cyderize.github.io/rust-websocket/doc/websocket/server/struct.Server.html
but whenever a websocket client connects to the server, the server fails with
It works if I use the non-secure server, and my ssl cert works in another application.
The text was updated successfully, but these errors were encountered: