I tried all conceivable haproxy configurations posted on blogs and stackoverflow, but I still can't get haproxy and socket.io to work 100% of the time. In most browsers that "support" network sockets, it fails and returns to a lengthy poll after missing heartbeats. The browser is supposed to make an initial connection (debugging nodejs), but I cannot get clients to receive a response to the connection. Does anyone have similar problems? Below are the software version numbers and some configurations that I have tried.
- haproxy 1.4.18
- node 0.6.5
- socket.io 0.8.7
Haproxy configurations (I tried many more and many options):
Web sockets working in:
- Safari 5 (Windows)
- Chrome 11 (Linux)
source
share