You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to request help please.
Protocol: Websockets with fallback as long-polling
Tomcat: 8
NGINX: 1.6.0
Java: 1.7.0_45
OS: Ubuntu
My application works via websockets in most of the networks. But in some of networks when i directly access via NGINX i get:
WebSocket connection to 'ws://11.22.25.15/test/message?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.2.0-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&Content-Type=application/json&X-atmo-protocol=true' failed: Error during WebSocket handshake: Unexpected response code: 501
Then it fallsback to Long Polling in NGINX.
But in the same network it works via Tomcat on websockets.
Thus websockets work in tomcat and 'not' via NGINX.
(The same application 'will' run via NGINX on websockets in other networks)
Really Appreciate your help.
Thanks,
Jaskaran
The text was updated successfully, but these errors were encountered:
Hi Jeanfrancois,
I wanted to request help please.
Protocol: Websockets with fallback as long-polling
Tomcat: 8
NGINX: 1.6.0
Java: 1.7.0_45
OS: Ubuntu
My application works via websockets in most of the networks. But in some of networks when i directly access via NGINX i get:
WebSocket connection to 'ws://11.22.25.15/test/message?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.2.0-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&Content-Type=application/json&X-atmo-protocol=true' failed: Error during WebSocket handshake: Unexpected response code: 501
Then it fallsback to Long Polling in NGINX.
But in the same network it works via Tomcat on websockets.
Thus websockets work in tomcat and 'not' via NGINX.
(The same application 'will' run via NGINX on websockets in other networks)
Really Appreciate your help.
Thanks,
Jaskaran
The text was updated successfully, but these errors were encountered: