Thursday, 27 April 2017

Websocket upgrade response not reaching client through Nginx

I have a IOS/swift client connecting to a NodeJS/ws websocket service through a NGINX reverse proxy. All the websocket related forwarding setup is done in the NGINX configuration and websocket service is able to upgrade and setup the websocket connection from the client's upgrade request.

But on the client end, no Response is received for the original http upgrade Request.

When the websocket terminates the connection after a timeout, the client gets the Response, which is strange.

The NGINX reverse proxy is running in a container on a VM.

I have seen one other question to the exact same issue but did not find any answers. Is this a problem with the proxy running in a container?

"Nginx not passing websocket upgrade response back to client?"



via nchandra

No comments:

Post a Comment