wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

Websocket stalls "Switching Protocols" #61

Closed tobyhede closed 11 years ago

tobyhede commented 11 years ago

Have the basic websocket demo setup but the demo page stalls "switching protocols"

Chromium Version 22.0.1229.94 Built on Ubuntu 12.10, running on LinuxMint 14 (161065)

Request URL:ws://localhost:8080/ws/ch1?_=1357199969853
Request Method:GET
Status Code:101 Switching Protocols

Response Headers
Connection:Upgrade
Sec-WebSocket-Accept:8wFYAdJDsoCUdW9V9HpbM1vxeOw=
Upgrade:WebSocket
(Challenge Response):00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
wandenberg commented 11 years ago

Hi Toby,

could you do a test for me? Try to access the chat example and let me know if it works http://www.nginxpushstream.com/chat.html

tobyhede commented 11 years ago

Same issue with the chat example.

Status is "online" but the system has stalled switching protocols.

The latest build of chromium is using WebSocket 13:

Sec-WebSocket-Extensions:x-webkit-deflate-frame
Sec-WebSocket-Key:kM+LMd2XmPp37cF9V+r2bQ==
Sec-WebSocket-Version:13

http://tools.ietf.org/html/rfc6455

wandenberg commented 11 years ago

Hi, the WebSocket version 13 is supported by the module and is the same version used on chrome and firefox if I'm not wrong. I tried with the Chromium 20.0.1132.47 on Ubuntu 12.04 and everything works fine like you can see on images. The 101 switching protocols status is normal, make part of the protocol. Did you tried to send/receive messages? The "online" status suggest that the handshake was correctly done. May be a problem on the browser version you are using.

chromium

firefox