yaoweibin/nginx_tcp_proxy_module — Issue #23: WebSocket with SSL is Instability
Author: xenophy
Created: 2012-01-24 14:50:49+00:00
State: open

**nginx.conf**

tcp {
upstream websockets {
# node.js servers (e.g., socket.io servers)
server xxx.xxx.xxx.xxx:3000;
check interval=3000 rise=2 fall=5 timeout=1000;
}

server {
server_name _;
listen 443;
ssl on;
ssl_certificate /path to crt;
ssl_certificate_key /path to key;
so_keepalive on;
tcp_nodelay on;
proxy_pass websockets;
}
}

When I do not use SSL, It's stable and work.
When 4-5 times access it, a server does not return a request.

**stable without SSL**

tcp {
upstream websockets {
# node.js servers (e.g., socket.io servers)
server xxx.xxx.xxx.xxx:3000;
check interval=3000 rise=2 fall=5 timeout=1000;
}

server {
server_name _;
listen 80;
tcp_nodelay on;
proxy_pass websockets;
}
}

i used **Nginx** Version is 1.1.3 and **nginx_tcp_proxy_module** is develop branch(2012/01/24)

I think that it is SSL to be unstable, and it is not WebSocket.
In the static page, the same thing happens.