<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Error with haproxy using balance roundrobin to connect to long-polling CometD server?</title>
        <description> Hi,

I have two CometD servers, They use *long-polling* to push messages to
users.
    cometd1: 10.10.69.103
    cometd2: 10.11.157.139
user A can use &amp;quot;http://10.10.69.103:80/?user=A&amp;quot; to connect to cometd1

Now I have haproxy on 10.10.69.102, haproxy.cfg like this:

global
        log 127.0.0.1   local0
        maxconn 4096
        chroot /opt/apps/haproxy
        uid 99
        gid 99
        daemon
        nbproc 1
        pidfile /opt/apps/haproxy/logs/haproxy.pid

defaults
        log     127.0.0.1       local3
        mode    http
        option  httplog
        option  httpclose
        option  dontlognull
        option  forwardfor
        option  redispatch
        retries 2
        stats   uri     /haproxy-stats
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000


backend cometd
        mode http
        timeout connect 5s
        timeout server 5m
        *balance source*
        server cometd1 10.10.69.103:80 check weight 12 maxconn 100000
        server cometd2 10.11.157.139:80 check weight 13 maxconn 200000

frontend http_proxy
        bind *:80
        mode http
        option forwardfor
        option http-server-close
        option http-pretend-keepalive
        default_backend cometd

It works well.

When I open url: http://10.10.69.102?user=lihaibo6, the haproxy log like
this:

Mar  8 11:21:58 localhost.localdomain haproxy[9148]:
10.1.80.136:1972[08/Mar/2012:11:21:58.042] http_proxy cometd/
*cometd1* 0/0/0/2/2 200 1208 - - ---- 0/0/0/0/0 0/0 &amp;quot;GET /?user=lihaibo6
HTTP/1.1&amp;quot;
Mar  8 11:21:58 localhost.localdomain haproxy[9148]:
10.1.80.136:1979[08/Mar/2012:11:21:58.262] http_proxy cometd/
*cometd1* 0/0/0/1/2 400 1627 - - ---- 0/0/0/0/0 0/0 &amp;quot;GET /cometd HTTP/1.1&amp;quot;
Mar  8 11:21:59 localhost.localdomain haproxy[9148]:
10.1.80.136:1983[08/Mar/2012:11:21:59.335] http_proxy cometd/
*cometd1* 0/0/0/2/2 200 355 - - ---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/handshake
HTTP/1.1&amp;quot;
Mar  8 11:21:59 localhost.localdomain haproxy[9148]:
10.1.80.136:1984[08/Mar/2012:11:21:59.367] http_proxy cometd/
*cometd1* 0/0/0/2/2 200 288 - - ---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/ HTTP/1.1&amp;quot;
Mar  8 11:21:59 localhost.localdomain haproxy[9148]:
10.1.80.136:1985[08/Mar/2012:11:21:59.401] http_proxy cometd/
*cometd1* 0/0/0/2/2 200 271 - - ---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect
HTTP/1.1&amp;quot;

It seems take *5 steps(comet connect, comet handshake...)* to establish a
long-polling cometd connection.

But, If I use balance roundrobin, not balance source, It can not work, and
I get haproxy log like this:

Mar  8 11:19:44 localhost.localdomain haproxy[9124]:
10.1.80.136:1791[08/Mar/2012:11:19:44.345] http_proxy cometd/
*cometd2* 0/0/0/3/3 200 1111 - - ---- 0/0/0/0/0 0/0 &amp;quot;GET /?user=lihaibo6
HTTP/1.1&amp;quot;
Mar  8 11:19:44 localhost.localdomain haproxy[9124]:
10.1.80.136:1792[08/Mar/2012:11:19:44.509] http_proxy cometd/
*cometd2* 0/0/0/2/2 400 1627 - - ---- 0/0/0/0/0 0/0 &amp;quot;GET /cometd HTTP/1.1&amp;quot;
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:
10.1.80.136:1794[08/Mar/2012:11:19:45.535] http_proxy cometd/
*cometd1* 0/0/0/2/2 200 356 - - ---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/handshake
HTTP/1.1&amp;quot;
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:
10.1.80.136:1795[08/Mar/2012:11:19:45.566] http_proxy cometd/
*cometd2* 0/0/0/2/2 200 326 - - ---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/ HTTP/1.1&amp;quot;
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:
10.1.80.136:1796[08/Mar/2012:11:19:45.598] http_proxy cometd/cometd1
0/0/0/1/1 200 271 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:
10.1.80.136:1797[08/Mar/2012:11:19:45.629] http_proxy cometd/cometd2
0/0/0/2/2 200 290 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:
10.1.80.136:1798[08/Mar/2012:11:19:45.675] http_proxy cometd/cometd1
0/0/0/1/1 400 1627 - -
---- 0/0/0/0/0 0/0 &amp;quot;GET /cometd HTTP/1.1&amp;quot;
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:
10.1.80.136:1801[08/Mar/2012:11:19:46.775] http_proxy cometd/cometd2
0/0/0/2/2 200 355 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/handshake HTTP/1.1&amp;quot;
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:
10.1.80.136:1802[08/Mar/2012:11:19:46.790] http_proxy cometd/cometd1
0/0/0/2/2 200 327 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/ HTTP/1.1&amp;quot;
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:
10.1.80.136:1803[08/Mar/2012:11:19:46.801] http_proxy cometd/cometd2
0/0/0/2/2 200 272 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:
10.1.80.136:1804[08/Mar/2012:11:19:46.815] http_proxy cometd/cometd1
0/0/0/1/1 200 291 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:
10.1.80.136:1805[08/Mar/2012:11:19:46.825] http_proxy cometd/cometd2
0/0/0/1/2 400 1627 - -
---- 0/0/0/0/0 0/0 &amp;quot;GET /cometd HTTP/1.1&amp;quot;
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:
10.1.80.136:1806[08/Mar/2012:11:19:47.850] http_proxy cometd/cometd1
0/0/0/1/1 200 357 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/handshake HTTP/1.1&amp;quot;
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:
10.1.80.136:1807[08/Mar/2012:11:19:47.881] http_proxy cometd/cometd2
0/0/0/2/2 200 328 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/ HTTP/1.1&amp;quot;
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:
10.1.80.136:1808[08/Mar/2012:11:19:47.911] http_proxy cometd/cometd1
0/0/0/1/1 200 272 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:
10.1.80.136:1809[08/Mar/2012:11:19:47.943] http_proxy cometd/cometd2
0/0/0/2/2 200 291 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:
10.1.80.136:1810[08/Mar/2012:11:19:47.981] http_proxy cometd/cometd1
0/0/0/0/1 400 1627 - -
---- 0/0/0/0/0 0/0 &amp;quot;GET /cometd HTTP/1.1&amp;quot;
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:
10.1.80.136:1813[08/Mar/2012:11:19:49.021] http_proxy cometd/cometd2
0/0/0/2/2 200 358 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/handshake HTTP/1.1&amp;quot;
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:
10.1.80.136:1814[08/Mar/2012:11:19:49.053] http_proxy cometd/cometd1
0/0/0/1/1 200 328 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/ HTTP/1.1&amp;quot;
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:
10.1.80.136:1815[08/Mar/2012:11:19:49.094] http_proxy cometd/cometd2
0/0/0/2/2 200 272 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:
10.1.80.136:1816[08/Mar/2012:11:19:49.125] http_proxy cometd/cometd1
0/0/0/1/1 200 291 - -
---- 0/0/0/0/0 0/0 &amp;quot;POST /cometd/connect HTTP/1.1&amp;quot;
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:
10.1.80.136:1817[08/Mar/2012:11:19:49.255] http_proxy cometd/cometd2
0/0/0/2/2 400 1627 - -
---- 0/0/0/0/0 0/0 &amp;quot;GET /cometd HTTP/1.1&amp;quot;

It keep attempting to connect to CometD servers, but fails all the time,
because &amp;quot;balance roundrobin&amp;quot; can not make sure the &amp;quot;*5 steps(comet connect,
comet handshake...)* &amp;quot; on the same server, right?
Is this a bug?



-- 
Best Regard!</description>
        <link>http://www.serverphorums.com/read.php?10,458182,458182#msg-458182</link>
        <lastBuildDate>Sun, 19 May 2013 02:24:15 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,458182,458911#msg-458911</guid>
            <title>Re: Error with haproxy using balance roundrobin to connect to long-polling CometD server?</title>
            <link>http://www.serverphorums.com/read.php?10,458182,458911#msg-458911</link>
            <description><![CDATA[ Hi<br />
<br />
&quot;balance source&quot; is more affinity than persistence, which means that<br />
you might be redirected to an other server sometime.<br />
To be very efficient, source balancing needs a very large scope of source IPs.<br />
You can try mixing balance source with &quot;hash-type consistent&quot; to try<br />
to avoid your client to switch from a server to an other one.<br />
<br />
Since you're doing long polling I would recommend balance leastconn to<br />
balance better te load.<br />
If you really need persistence, then you'll have to use either &quot;cookie<br />
insert&quot; or &quot;cookie prefix&quot;.<br />
<br />
cheers]]></description>
            <dc:creator>Baptiste</dc:creator>
            <category>HAProxy</category>
            <pubDate>Fri, 09 Mar 2012 07:50:17 +0100</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,458182,458395#msg-458395</guid>
            <title>RE: Error with haproxy using balance roundrobin to connect to long-polling CometD server?</title>
            <link>http://www.serverphorums.com/read.php?10,458182,458395#msg-458395</link>
            <description><![CDATA[ Yes, that is a bug in your configuration.  You need to tell haproxy the<br />
connections needs to go to that same server if that is what the servers<br />
need.  When I require session affinity, personally I prefer to use cookies<br />
to make that happen but they might not work for some situations.<br />
<br />
 <br />
<br />
Add/adjust something like the following for your backend section to use<br />
cookies:<br />
<br />
          cookie COMETD insert<br />
<br />
        server cometd1 10.10.69.103:80 check cookie c1 weight 12 maxconn<br />
100000<br />
<br />
        server cometd2 10.11.157.139:80 check cookie c2 weight 13 maxconn<br />
200000<br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
From: 李海波 [mailto:lihappy@gmail.com] <br />
Sent: Wednesday, March 07, 2012 11:39 PM<br />
To: <a href="mailto:&#104;&#97;&#112;&#114;&#111;&#120;&#121;&#64;&#102;&#111;&#114;&#109;&#105;&#108;&#117;&#120;&#46;&#111;&#114;&#103;">&#104;&#97;&#112;&#114;&#111;&#120;&#121;&#64;&#102;&#111;&#114;&#109;&#105;&#108;&#117;&#120;&#46;&#111;&#114;&#103;</a><br />
Subject: Error with haproxy using balance roundrobin to connect to<br />
long-polling CometD server?<br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
It keep attempting to connect to CometD servers, but fails all the time,<br />
because &quot;balance roundrobin&quot; can not make sure the &quot;5 steps(comet connect,<br />
comet handshake...) &quot; on the same server, right?<br />
<br />
Is this a bug?]]></description>
            <dc:creator>John Lauro</dc:creator>
            <category>HAProxy</category>
            <pubDate>Thu, 08 Mar 2012 13:40:02 +0100</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,458182,458182#msg-458182</guid>
            <title>Error with haproxy using balance roundrobin to connect to long-polling CometD server?</title>
            <link>http://www.serverphorums.com/read.php?10,458182,458182#msg-458182</link>
            <description><![CDATA[ Hi,<br />
<br />
I have two CometD servers, They use *long-polling* to push messages to<br />
users.<br />
    cometd1: 10.10.69.103<br />
    cometd2: 10.11.157.139<br />
user A can use &quot;<a href="http://10.10.69.103:80/?user=A&quot" target="_blank"  rel="nofollow">http://10.10.69.103:80/?user=A&quot</a>; to connect to cometd1<br />
<br />
Now I have haproxy on 10.10.69.102, haproxy.cfg like this:<br />
<br />
global<br />
        log 127.0.0.1   local0<br />
        maxconn 4096<br />
        chroot /opt/apps/haproxy<br />
        uid 99<br />
        gid 99<br />
        daemon<br />
        nbproc 1<br />
        pidfile /opt/apps/haproxy/logs/haproxy.pid<br />
<br />
defaults<br />
        log     127.0.0.1       local3<br />
        mode    http<br />
        option  httplog<br />
        option  httpclose<br />
        option  dontlognull<br />
        option  forwardfor<br />
        option  redispatch<br />
        retries 2<br />
        stats   uri     /haproxy-stats<br />
        contimeout      5000<br />
        clitimeout      50000<br />
        srvtimeout      50000<br />
<br />
<br />
backend cometd<br />
        mode http<br />
        timeout connect 5s<br />
        timeout server 5m<br />
        *balance source*<br />
        server cometd1 10.10.69.103:80 check weight 12 maxconn 100000<br />
        server cometd2 10.11.157.139:80 check weight 13 maxconn 200000<br />
<br />
frontend http_proxy<br />
        bind *:80<br />
        mode http<br />
        option forwardfor<br />
        option http-server-close<br />
        option http-pretend-keepalive<br />
        default_backend cometd<br />
<br />
It works well.<br />
<br />
When I open url: <a href="http://10.10.69.102?user=lihaibo6" target="_blank"  rel="nofollow">http://10.10.69.102?user=lihaibo6</a>, the haproxy log like<br />
this:<br />
<br />
Mar  8 11:21:58 localhost.localdomain haproxy[9148]:<br />
10.1.80.136:1972[08/Mar/2012:11:21:58.042] http_proxy cometd/<br />
*cometd1* 0/0/0/2/2 200 1208 - - ---- 0/0/0/0/0 0/0 &quot;GET /?user=lihaibo6<br />
HTTP/1.1&quot;<br />
Mar  8 11:21:58 localhost.localdomain haproxy[9148]:<br />
10.1.80.136:1979[08/Mar/2012:11:21:58.262] http_proxy cometd/<br />
*cometd1* 0/0/0/1/2 400 1627 - - ---- 0/0/0/0/0 0/0 &quot;GET /cometd HTTP/1.1&quot;<br />
Mar  8 11:21:59 localhost.localdomain haproxy[9148]:<br />
10.1.80.136:1983[08/Mar/2012:11:21:59.335] http_proxy cometd/<br />
*cometd1* 0/0/0/2/2 200 355 - - ---- 0/0/0/0/0 0/0 &quot;POST /cometd/handshake<br />
HTTP/1.1&quot;<br />
Mar  8 11:21:59 localhost.localdomain haproxy[9148]:<br />
10.1.80.136:1984[08/Mar/2012:11:21:59.367] http_proxy cometd/<br />
*cometd1* 0/0/0/2/2 200 288 - - ---- 0/0/0/0/0 0/0 &quot;POST /cometd/ HTTP/1.1&quot;<br />
Mar  8 11:21:59 localhost.localdomain haproxy[9148]:<br />
10.1.80.136:1985[08/Mar/2012:11:21:59.401] http_proxy cometd/<br />
*cometd1* 0/0/0/2/2 200 271 - - ---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect<br />
HTTP/1.1&quot;<br />
<br />
It seems take *5 steps(comet connect, comet handshake...)* to establish a<br />
long-polling cometd connection.<br />
<br />
But, If I use balance roundrobin, not balance source, It can not work, and<br />
I get haproxy log like this:<br />
<br />
Mar  8 11:19:44 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1791[08/Mar/2012:11:19:44.345] http_proxy cometd/<br />
*cometd2* 0/0/0/3/3 200 1111 - - ---- 0/0/0/0/0 0/0 &quot;GET /?user=lihaibo6<br />
HTTP/1.1&quot;<br />
Mar  8 11:19:44 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1792[08/Mar/2012:11:19:44.509] http_proxy cometd/<br />
*cometd2* 0/0/0/2/2 400 1627 - - ---- 0/0/0/0/0 0/0 &quot;GET /cometd HTTP/1.1&quot;<br />
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1794[08/Mar/2012:11:19:45.535] http_proxy cometd/<br />
*cometd1* 0/0/0/2/2 200 356 - - ---- 0/0/0/0/0 0/0 &quot;POST /cometd/handshake<br />
HTTP/1.1&quot;<br />
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1795[08/Mar/2012:11:19:45.566] http_proxy cometd/<br />
*cometd2* 0/0/0/2/2 200 326 - - ---- 0/0/0/0/0 0/0 &quot;POST /cometd/ HTTP/1.1&quot;<br />
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1796[08/Mar/2012:11:19:45.598] http_proxy cometd/cometd1<br />
0/0/0/1/1 200 271 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1797[08/Mar/2012:11:19:45.629] http_proxy cometd/cometd2<br />
0/0/0/2/2 200 290 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:45 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1798[08/Mar/2012:11:19:45.675] http_proxy cometd/cometd1<br />
0/0/0/1/1 400 1627 - -<br />
---- 0/0/0/0/0 0/0 &quot;GET /cometd HTTP/1.1&quot;<br />
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1801[08/Mar/2012:11:19:46.775] http_proxy cometd/cometd2<br />
0/0/0/2/2 200 355 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/handshake HTTP/1.1&quot;<br />
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1802[08/Mar/2012:11:19:46.790] http_proxy cometd/cometd1<br />
0/0/0/2/2 200 327 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/ HTTP/1.1&quot;<br />
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1803[08/Mar/2012:11:19:46.801] http_proxy cometd/cometd2<br />
0/0/0/2/2 200 272 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1804[08/Mar/2012:11:19:46.815] http_proxy cometd/cometd1<br />
0/0/0/1/1 200 291 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:46 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1805[08/Mar/2012:11:19:46.825] http_proxy cometd/cometd2<br />
0/0/0/1/2 400 1627 - -<br />
---- 0/0/0/0/0 0/0 &quot;GET /cometd HTTP/1.1&quot;<br />
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1806[08/Mar/2012:11:19:47.850] http_proxy cometd/cometd1<br />
0/0/0/1/1 200 357 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/handshake HTTP/1.1&quot;<br />
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1807[08/Mar/2012:11:19:47.881] http_proxy cometd/cometd2<br />
0/0/0/2/2 200 328 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/ HTTP/1.1&quot;<br />
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1808[08/Mar/2012:11:19:47.911] http_proxy cometd/cometd1<br />
0/0/0/1/1 200 272 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1809[08/Mar/2012:11:19:47.943] http_proxy cometd/cometd2<br />
0/0/0/2/2 200 291 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:47 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1810[08/Mar/2012:11:19:47.981] http_proxy cometd/cometd1<br />
0/0/0/0/1 400 1627 - -<br />
---- 0/0/0/0/0 0/0 &quot;GET /cometd HTTP/1.1&quot;<br />
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1813[08/Mar/2012:11:19:49.021] http_proxy cometd/cometd2<br />
0/0/0/2/2 200 358 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/handshake HTTP/1.1&quot;<br />
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1814[08/Mar/2012:11:19:49.053] http_proxy cometd/cometd1<br />
0/0/0/1/1 200 328 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/ HTTP/1.1&quot;<br />
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1815[08/Mar/2012:11:19:49.094] http_proxy cometd/cometd2<br />
0/0/0/2/2 200 272 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1816[08/Mar/2012:11:19:49.125] http_proxy cometd/cometd1<br />
0/0/0/1/1 200 291 - -<br />
---- 0/0/0/0/0 0/0 &quot;POST /cometd/connect HTTP/1.1&quot;<br />
Mar  8 11:19:49 localhost.localdomain haproxy[9124]:<br />
10.1.80.136:1817[08/Mar/2012:11:19:49.255] http_proxy cometd/cometd2<br />
0/0/0/2/2 400 1627 - -<br />
---- 0/0/0/0/0 0/0 &quot;GET /cometd HTTP/1.1&quot;<br />
<br />
It keep attempting to connect to CometD servers, but fails all the time,<br />
because &quot;balance roundrobin&quot; can not make sure the &quot;*5 steps(comet connect,<br />
comet handshake...)* &quot; on the same server, right?<br />
Is this a bug?<br />
<br />
<br />
<br />
-- <br />
Best Regard!]]></description>
            <dc:creator>李海波</dc:creator>
            <category>HAProxy</category>
            <pubDate>Thu, 08 Mar 2012 05:40:01 +0100</pubDate>
        </item>
    </channel>
</rss>
