Closed Kronuz closed 10 years ago
Hi,
to help you I need more information. What js library are you using? Which browser made this request? Websocket has many implementations, the module support only 2 of them. May be an old browser, or a browser which does not implement correctly the specification. If you can, send me a step by step how to reproduce the problem.
I am using the pushstream.js library in your repp's master branch. nginx-push-stream also from master and compiled as a Nginx 1.4.2 plugin. And the browser is latest stable Google Chrome for OS X (as this has also happened in my local configuration, in the machine I use). Unfortunately, this only happens in occasions, and I'm unable to consistently reproduce the problem. The client adds channels, and uses pushstream through secure sockets... then suddenly the nginx server starts reporting those messages from time to time.
I'm getting same error, this happens when server was restarted and clients are trying to reestablish connection to websockets.
Hi,
sorry for the late response, and thanks for report when the problem happens. This helped a lot. Please, try the code on 0.4.x branch. I fixed this message error and the lazy reload problem. And send me some feedback if you keep receiving the messages errors
Regards, Wandenberg
On Sat, Sep 28, 2013 at 1:12 PM, jerzyk notifications@github.com wrote:
I'm getting same error, this happens when server was restarted and clients are trying to reestablish connection to websockets.
— Reply to this email directly or view it on GitHubhttps://github.com/wandenberg/nginx-push-stream-module/issues/95#issuecomment-25300913 .
I'm still getting things like this, although far less frequently it seems (changed the actual string in the message to utf-8 for posting here):
2013/10/22 12:22:16 [info] 61022#0: *196 client sent invalid method while reading client request line, client: 127.0.0.1, server: *.publish, request: '\xef\xbf\xbd\xef\xbf\xbd4{\xef\xbf\xbdH\xef\xbf\xbd\xef\xbf\xbdDN\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbdKp8\xef\xbf\xbd\xef\xbf\xbdh\xef\xbf\xbd\xee\x8a\x80\xef\xbf\xbd}% \xef\xbf\xbd\xef\xbf\xbdX\xef\xbf\xbd\xef\xbf\xbd\\\xef\xbf\xbd\xef\xbf\xbd1s\xef\xbf\xbd|\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd_t\xc8\x8a\xef\xbf\xbd\xef\xbf\xbd>\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xb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xbd\xef\xbf\xbdY\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd^!\xe1\xbf\x8a\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\x8a\x80\xef\xbf\xbd\xef\xbf\xbdDA\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbdv97\xef\xbf\xbd\xef\xbf\xbd,t2Z\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbda\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbdV\xef\xbf\xbd}\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd9+\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd]\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd3a\xe1\xaa\x8a\xef\xbf\xbdba\xef\xbf\xbdn\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd/\xef\xbf\xbdm\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd:\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xdb\x92pX\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd*\xef\xbf\xbd\xef\xbf\xbdr\xef\xbf\xbd\xef\xbf\xbd'
and messages like the next one are, I suppose, maybe what changed... because I started getting more of this:
2013/10/22 12:13:30 [info] 61022#0: *234 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
Hi,
please try the version on 0.4.x branch. This branch will be released soon as 0.4.0 version. I have made some changes to fix this problem when reloading the server.
On Wed, Oct 23, 2013 at 1:38 PM, Germán M. Bravo notifications@github.comwrote:
I'm still getting things like this, although far less frequently it seems:
2013/10/22 12:22:16 [info] 61022#0: _196 client sent invalid method while reading client request line, client (changed the actual string in the message to utf-8 for posting here): 127.0.0.1, server: *.publish, request: '\xef\xbf\xbd\xef\xbf\xbd4{\xef\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\xbd\xef\xbf\xbd'
and messages like the next one are, I suppose, maybe what changed... because I started getting more of this:
2013/10/22 12:13:30 [info] 61022#0: *234 client closed connection while waiting for request, client: 127.0.0.1, server: 0.0.0.0:80
— Reply to this email directly or view it on GitHubhttps://github.com/wandenberg/nginx-push-stream-module/issues/95#issuecomment-26915853 .
Yes, I am trying the tip of 0.4.x branch ;) ...but the problem is still there (not as frequent as it was though, it seems).
So, can you check the try_websocket_keepalive_fix branch? It is equals to 0.4.x branch except I disabled the keepalive support for websocket. So, if the connection fails it will start the protocol handshake again.
On Wed, Oct 23, 2013 at 4:12 PM, Germán M. Bravo notifications@github.comwrote:
Yes, I am trying the tip of 0.4.x branch ;) ...but the problem is still there (not as frequent as it was though, it seems).
— Reply to this email directly or view it on GitHubhttps://github.com/wandenberg/nginx-push-stream-module/issues/95#issuecomment-26929274 .
This was solved on tag 0.4.0 3d3a204177d3a7ab8a2858e04e792a6d11bf133f
I'm getting a lot of messages like this one in my nginx logs
The
<8A><80>
part is what hints me this could be related to the nginx-push-stream module I'm I correct?... I'm using websockets. Could it be something wrong somewhere? (Perhaps in the js lib?)