Re: Keep-alive and websocket connections

2014-02-06 Thread Chris Yang
Thanks for your suggestion, Lukas. For my own understanding, are you saying that there is no difference between having "http-keep-alive" and having "http-server-close" to a backend server once websocket connection to that server is establish, and both settings allow for establishing websocket conn

Keep-alive and websocket connections

2014-02-06 Thread Chris Yang
Dear all, In the latest HAProxy 1.5 release (dev22), it is indicated that keep-alive is now enabled by default for both client and server sides. I have some questions regarding its use in the following scenario. I use HAProxy in front of an array of servers: one nginx for delivering static files,

Re: HAProxy maintains connection to proxied server after client disconnects

2013-06-10 Thread Chris Yang
Hi Lukas, Thank you for your suggestion. It works! I guess this is a shortcoming of streaming and eventsource protocols, because there are two separate connections involved for each client, whereas for websocket and long-polling haproxy can tell for sure the connection breaks given there is only o

HAProxy maintains connection to proxied server after client disconnects

2013-06-08 Thread Chris Yang
Hi, I'm using HAProxy (1.5 dev18) in front of tornado servers to load-balancing websockets and xhr-streaming connections. I notice something strange but consistent with xhr-streaming connection (details here: https://groups.google.com/forum/?fromgroups#!topic/sockjs/LwfgT2qwIT0). In short, even a

Re: XHR-streaming and Websocket connections in 1.5-dev17

2013-03-01 Thread Chris Yang
aptiste wrote: > Hi Chris, > > Please read the article below: > > http://blog.exceliance.fr/2012/11/07/websockets-load-balancing-with-haproxy/ > > You may find answers ;) > > cheers > > On Wed, Feb 27, 2013 at 4:35 PM, Chris Yang wrote: > > > > He

Re: XHR-streaming and Websocket connections in 1.5-dev17

2013-03-01 Thread Chris Yang
ease the success rate, which is exactly what I've done. Still, even though I haven't count precisely, the overall success rate is definitely below 90% for me. What else can I try here? Thanks! Best, Chris On Fri, Mar 1, 2013 at 1:39 AM, Willy Tarreau wrote: > Hi Chris, > &

Re: XHR-streaming and Websocket connections in 1.5-dev17

2013-02-27 Thread Chris Yang
s enable > stats uri /haproxy/stats > stats realm Haproxy\ Statistics > > backend www > #timeout server 300s > #option forwardfor header X-Client-IP > #no option httpclose > #option http-server-close > server content 1

XHR-streaming and Websocket connections in 1.5-dev17

2013-02-22 Thread Chris Yang
Hello, I upgraded to dev17 from dev15. I am running Tornado servers behind HAProxy with SockJS support. Comparing to before the upgrade, I've noticed two problematic behaviors: 1. When a client is using IE with xhr-streaming protocol to connect to servers, such connections are closed (seeing 'Con