wandenberg / nginx-push-stream-module

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

Error #289

Closed snezhkoigor closed 4 years ago

snezhkoigor commented 4 years ago
2019/12/12 15:44:47 [error] 20080#20080: *68645 push stream module: Don't have at least one of the mandatory headers: Connection, Upgrade, Sec-WebSocket-Key and Sec-WebSocket-Version, client: ..., server: ..., request: "GET //ws/981241337ccd5a64c07b2077d42d870f?_=1576154687211&tag=&time=Thu%2C%2012%20Dec%202019%2012%3A44%3A07%20GMT&eventid= HTTP/1.1", host: "..."

What to do with this?

wandenberg commented 4 years ago

@snezhkoigor what kind of WS client are you using? The message indicates that the client that is being used is not compatible with the WebSocket protocol implemented on the module, or that something on the request path is striping at least one of the required headers. Can you give more information about your environment, configuration and use case?

snezhkoigor commented 4 years ago

@snezhkoigor what kind of WS client are you using? The message indicates that the client that is being used is not compatible with the WebSocket protocol implemented on the module, or that something on the request path is striping at least one of the required headers. Can you give more information about your environment, configuration and use case?

pushstream.js

Some time before all worked perfect. But now I see this in logs.

wandenberg commented 4 years ago

Can you change the error log format to log the user agent of the request? It might be some client just scanning the WebSocket port or some incompatible browser. With the user agent, we might be able to find out.

snezhkoigor commented 4 years ago

Can you change the error log format to log the user agent of the request? It might be some client just scanning the WebSocket port or some incompatible browser. With the user agent, we might be able to find out.

ok. will send later.

wandenberg commented 4 years ago

have you found something @snezhkoigor ?