﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
325	websocket doesn't work when using unix socket for proxy_pass	Avétis Kazarian	Maxim Dounin	"I don't know if it's something to be excepted or if it's really a bug.

My conf (in a `server {}`):

{{{
location ~ /socket {
  proxy_pass http://unix:/tmp/app.socket;
  proxy_http_version 1.1;
  proxy_set_header Upgrade ""websocket"";
  proxy_set_header Connection ""upgrade"";
}
}}}

`error.log`:

{{{
2013/03/26 15:25:11 [alert] 21581#0: *3457 
setsockopt(TCP_NODELAY) failed 
(102: Operation not supported on socket) while proxying upgraded connection, 
client: 127.0.0.1, 
server: localhost, 
request: ""GET /socket/230/5o96b2yn/websocket HTTP/1.1"",
upstream: ""http://unix:/tmp/app.socket:/socket/230/5o96b2yn/websocket"", 
host: ""localhost""
}}}

It works perfectly fine if I replace `proxy_pass http://unix:/tmp/app.socket;` with `proxy_pass http://127.0.0.1:9000;` (and make accordingly the change on my socket server to listen on port 9000)."	defect	closed	minor	1.3	nginx-core	1.3.x	fixed			Darwin mahaprabhu.local 12.3.0 Darwin Kernel Version 12.3.0: Sun Jan  6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64 x86_64 i386 MacBookPro10,1 Darwin	"nginx version: nginx/1.3.14
TLS SNI support enabled
configure arguments: --prefix=/usr/local/Cellar/nginx/1.3.14 --with-http_ssl_module --with-pcre --with-ipv6 --with-cc-opt=-I/usr/local/include --with-ld-opt=-L/usr/local/lib --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/run/nginx.lock --http-client-body-temp-path=/usr/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/usr/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/var/run/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/var/run/nginx/scgi_temp"
