Skip to content

Improve WebSocket handshake validation (fixed)#6027

Merged
asterite merged 8 commits intocrystal-lang:masterfrom
straight-shoota:jm-fix-websocket-key
May 1, 2018
Merged

Improve WebSocket handshake validation (fixed)#6027
asterite merged 8 commits intocrystal-lang:masterfrom
straight-shoota:jm-fix-websocket-key

Conversation

@straight-shoota
Copy link
Copy Markdown
Member

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

@straight-shoota
Copy link
Copy Markdown
Member Author

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

@RX14
Copy link
Copy Markdown
Member

RX14 commented Apr 30, 2018

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

@straight-shoota
Copy link
Copy Markdown
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
Copy Markdown
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.

4 participants