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

Improve WebSocket handshake validation (fixed) #6027

Merged
merged 8 commits into from May 1, 2018

Conversation

straight-shoota
Copy link
Member

Fixed #5327 to the changes to HTTP::Server API from #5776

@straight-shoota
Copy link
Member Author

@RX14 Any idea about the broken pipe error in the specs? I can't reproduce it locally.

@RX14
Copy link
Contributor

RX14 commented Apr 30, 2018

It's a linux thing so you'll have to reproduce it on linux

@straight-shoota
Copy link
Member Author

I know 😁

It seems the error doesn't reproduce when this spec is run alone. And it looks very much similar to the error in #5958, probably related to HTTP::Server#close...

@straight-shoota
Copy link
Member Author

It is indeed the same as the error discovered in #5958. For some reason on Linux there seems to be some strange behaviour when HTTP::Server#close closes the socket servers.
For now I'll disable closing the server in the specs, then it should be all green. It's certainly not optimal, but the error with HTTP::Server needs to be fixed independently from this.

@asterite asterite merged commit ae1cb6e into crystal-lang:master May 1, 2018
@sdogruyol sdogruyol added this to the Next milestone May 1, 2018
@straight-shoota straight-shoota deleted the jm-fix-websocket-key branch May 1, 2018 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants