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:
http://forum.nginx.org/read.php?2,237839,237839#msg-237839

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:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs