-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Http request with Connection : "keep-alive, Upgrade" does not upgrade connection. #14191
Comments
It seems that this problem was fixed by nodejs/node@88aaff9. I haven't had the time to reproduce it though. So my suggestion would be to:
|
Yes, problem is in LWS, even single space characher causes issue. nodejs/node@88aaff9 fixes problem. However, current source version 0.13-pre has no problem. Do you still want test for it (copy/paste from nodes api-page http 'upgrade'-event + 'keep-alive, '-string) or let it be because problem is solved. |
@Hyvis I tried to reproduce the problem with the following sample code, borrowed from the API docs:
Here's the output I get with node v0.12.0:
Am I missing something? |
@Hyvis node v0.12 uses http_parser 2.3, which doesn't seem to have this issue. I ran the tests added by nodejs/node@88aaff9 against the version of http_parser in deps/http_parser for node v0.12, and they pass. Also, the regression described in this issue seems like it may have been introduced by nodejs/http-parser@091ebb8, which is included in http_parser versions 2.4 and later. Please let me know if I'm missing something. Without any more input I'll have to close this issue as I can't reproduce it. Thank you! |
@Hyvis Closing because I can't reproduce it, but please feel free to comment further if you think it's still an issue. |
Sorry that I didn't read email last week and answered to you earlier. I confirm that, my package manager has installed http_parser version 2015-04-22 1:06 GMT+03:00 Julien Gilli [email protected]:
|
@Hyvis No worries! Out of curiosity, what package manager are you using? |
I think it's Entropy, but it has Rigo as GUI. 2015-04-22 19:55 GMT+03:00 Julien Gilli [email protected]:
|
@Hyvis Thanks for the info! |
Still having this issues in firefox 52.0.2. What node packages i need to upgrade? |
Firefox (version 36.0.1) seems to send WebSocket http requests with header Connection: "keep-alive, Upgrade". Earlier version (0.10.x) of Nodes http-module worked and it emits 'upgrade'-event. At version 0.12.0 it doesn't and http responce has only Connection:'keep-alive' because request is handled like normal GET request with wrong url (ws:// -protocol). Removing 'keep-alive' from request header seem to work and produces 'upgrade'-event. At least node-module: theturtle32/WebSocket-Node (https://github.com/theturtle32/WebSocket-Node) is affected by this and doesn't get 'upgrade'-event.
Sabayon-linux, Node 0.12.0, Firefox 36.0.1
The text was updated successfully, but these errors were encountered: