Error when proxying websocket connection over unix socket

Hello everybody,

I found that if you try to proxy a websocket connection over a unix
socket
you get an error.
This is due to the fact that nginx tries to set TCP_NODELAY for the unix
socket in
ngx_http_upstream_upgrade
in line 2436

This probably should not be done for unix sockets.

Best Regards

David

Posted at Nginx Forum:

On Wed, Mar 27, 2013 at 01:21:06PM -0400, David.Neumann wrote:

Hello everybody,

I found that if you try to proxy a websocket connection over a unix socket
you get an error.
This is due to the fact that nginx tries to set TCP_NODELAY for the unix
socket in
ngx_http_upstream_upgrade
in line 2436

This probably should not be done for unix sockets.

You’re too late with your report:

https://trac.nginx.org/nginx/changeset/5143/nginx

:slight_smile: