Skip to content

Instantly share code, notes, and snippets.

@yuri-ko
yuri-ko / haproxy_nodejs_websocket
Created October 18, 2010 14:30
haproxy config to work with miksago's node-websocket-server
global
maxconn 4096
user haproxy
group haproxy
debug
defaults
timeout client 60000
timeout server 30000
timeout connect 4000
82c82,83
< parser.write(data);
---
> if (connection.waitingForNonce) handshakeHackFinish(connection, data);
> else parser.write(data);
165c166,167
< this.reject("Missing key3");
---
> this.waitingForNonce = true;
> this.handshake();