socket.io session ends with HAproxy

got an answer from the HAproxy mailling list, where an user called "Baptiste" give me this link:

http://blog.exceliance.fr/2012/11/07/websockets-load-balancing-with-haproxy/

that configuration works perfectly with socket.io (tested with all the protocols except flashsockets). What make it works is the set of options in the default directive, the checks for websockets in the backends and the headers checks are not really needed and you can set your own ACL to whatever you need to decide if you use the backend that is executing the socket.io app or not.

The stable version of HAproxy doesn't work with this config, you need a 1.5-devel10 or newer to have it working (i used the 1.5-devel14 version).