<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>bind keyword</title>
        <description> Hi,

In the documentation for 1.4.18 in the keyword matrix it states that
the bind configuration keyword is only valid within listen or frontend
sections. However I've created a backend section that not only allows
the keyword, but also creates a socket (which doesn't seem to respond
to any requests). Is this a bug or is it intentional? I've included
the backend snippet to look at.

backend some-backend-name
    balance roundrobin
    timeout check 10000
    bind :1557

    server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost

Regards,
Damien</description>
        <link>http://www.serverphorums.com/read.php?10,514026,514026#msg-514026</link>
        <lastBuildDate>Tue, 18 Jun 2013 09:36:34 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,514026,517171#msg-517171</guid>
            <title>Re: bind keyword</title>
            <link>http://www.serverphorums.com/read.php?10,514026,517171#msg-517171</link>
            <description><![CDATA[ Hi Willy,<br />
<br />
On 20 June 2012 19:44, Willy Tarreau &lt;w@1wt.eu&gt; wrote:<br />
&gt; Hi Damien,<br />
&gt;<br />
&gt; On Wed, Jun 20, 2012 at 04:19:09PM +0100, Damien Churchill wrote:<br />
&gt;&gt; I've found another place where the behaviour appears to diverge from<br />
&gt;&gt; the documentation. At the beginning of section 4 it says that it's<br />
&gt;&gt; mandatory that proxies with overlapping capabilities have different<br />
&gt;&gt; names. My interpretation of that is that frontends can't have the same<br />
&gt;&gt; name, and neither can backends, however a frontend may share a name<br />
&gt;&gt; with a backend, is that correct? I ask as it seems I'm able to (at<br />
&gt;&gt; least with 1.4.18) create multiple instances of front and backends<br />
&gt;&gt; with overlapping names.<br />
&gt;&gt;<br />
&gt;&gt; Config extract:<br />
&gt;&gt;<br />
&gt;&gt; backend some-backend-name<br />
&gt;&gt;     balance roundrobin<br />
&gt;&gt;     timeout check 10000<br />
&gt;&gt;<br />
&gt;&gt;     server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
&gt;&gt;     option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
&gt;&gt;<br />
&gt;&gt; backend some-backend-name<br />
&gt;&gt;     balance roundrobin<br />
&gt;&gt;     timeout check 10000<br />
&gt;&gt;<br />
&gt;&gt;     server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
&gt;&gt;     option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
&gt;&gt;<br />
&gt;&gt; frontend test-frontend<br />
&gt;&gt;     bind :19001<br />
&gt;&gt;<br />
&gt;&gt; frontend test-frontend<br />
&gt;&gt;     bind :19002<br />
&gt;&gt;<br />
&gt;&gt; Is this me misinterpreting how things should work or something else going on?<br />
&gt;<br />
&gt; Your interpretation is right, but I think you didn't read the warnings<br />
&gt; that are emitted when starting the service :<br />
&gt;<br />
&gt; [WARNING] 171/204356 (2413) : Parsing [overlap.cfg:27]: backend 'some-backend-name' has same name as another backend (declared at overlap.cfg:20).<br />
&gt; [WARNING] 171/204356 (2413) : Parsing [overlap.cfg:37]: frontend 'test-frontend' has same name as another frontend (declared at overlap.cfg:34).<br />
&gt;<br />
&gt; Nothing prevents the config from working, but some features will not<br />
&gt; reliably work with such a conf (eg: ACLs referencing a backend name).<br />
&gt; Hence the warning.<br />
&gt;<br />
<br />
Okay thanks, it's good to know the expected behaviour.<br />
<br />
I see the warnings now, I had 'quiet' in the configuration which was<br />
suppressing them, my mistake!<br />
<br />
Thanks,<br />
Damien]]></description>
            <dc:creator>Damien Churchill</dc:creator>
            <category>HAProxy</category>
            <pubDate>Thu, 21 Jun 2012 10:20:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,514026,516830#msg-516830</guid>
            <title>Re: bind keyword</title>
            <link>http://www.serverphorums.com/read.php?10,514026,516830#msg-516830</link>
            <description><![CDATA[ Hi Damien,<br />
<br />
On Wed, Jun 20, 2012 at 04:19:09PM +0100, Damien Churchill wrote:<br />
&gt; I've found another place where the behaviour appears to diverge from<br />
&gt; the documentation. At the beginning of section 4 it says that it's<br />
&gt; mandatory that proxies with overlapping capabilities have different<br />
&gt; names. My interpretation of that is that frontends can't have the same<br />
&gt; name, and neither can backends, however a frontend may share a name<br />
&gt; with a backend, is that correct? I ask as it seems I'm able to (at<br />
&gt; least with 1.4.18) create multiple instances of front and backends<br />
&gt; with overlapping names.<br />
&gt; <br />
&gt; Config extract:<br />
&gt; <br />
&gt; backend some-backend-name<br />
&gt;     balance roundrobin<br />
&gt;     timeout check 10000<br />
&gt; <br />
&gt;     server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
&gt;     option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
&gt; <br />
&gt; backend some-backend-name<br />
&gt;     balance roundrobin<br />
&gt;     timeout check 10000<br />
&gt; <br />
&gt;     server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
&gt;     option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
&gt; <br />
&gt; frontend test-frontend<br />
&gt;     bind :19001<br />
&gt; <br />
&gt; frontend test-frontend<br />
&gt;     bind :19002<br />
&gt; <br />
&gt; Is this me misinterpreting how things should work or something else going on?<br />
<br />
Your interpretation is right, but I think you didn't read the warnings<br />
that are emitted when starting the service :<br />
<br />
[WARNING] 171/204356 (2413) : Parsing [overlap.cfg:27]: backend 'some-backend-name' has same name as another backend (declared at overlap.cfg:20).<br />
[WARNING] 171/204356 (2413) : Parsing [overlap.cfg:37]: frontend 'test-frontend' has same name as another frontend (declared at overlap.cfg:34).<br />
<br />
Nothing prevents the config from working, but some features will not<br />
reliably work with such a conf (eg: ACLs referencing a backend name).<br />
Hence the warning.<br />
<br />
Regards,<br />
Willy]]></description>
            <dc:creator>Willy Tarreau</dc:creator>
            <category>HAProxy</category>
            <pubDate>Wed, 20 Jun 2012 20:50:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,514026,516656#msg-516656</guid>
            <title>Re: bind keyword</title>
            <link>http://www.serverphorums.com/read.php?10,514026,516656#msg-516656</link>
            <description><![CDATA[ Hi Willy,<br />
<br />
On 18 June 2012 08:07, Willy Tarreau &lt;w@1wt.eu&gt; wrote:<br />
&gt;<br />
&gt; Thanks for this useful report !<br />
&gt; Willy<br />
&gt;<br />
<br />
My pleasure, thanks for the great piece of software!<br />
<br />
I've found another place where the behaviour appears to diverge from<br />
the documentation. At the beginning of section 4 it says that it's<br />
mandatory that proxies with overlapping capabilities have different<br />
names. My interpretation of that is that frontends can't have the same<br />
name, and neither can backends, however a frontend may share a name<br />
with a backend, is that correct? I ask as it seems I'm able to (at<br />
least with 1.4.18) create multiple instances of front and backends<br />
with overlapping names.<br />
<br />
Config extract:<br />
<br />
backend some-backend-name<br />
    balance roundrobin<br />
    timeout check 10000<br />
<br />
    server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
<br />
backend some-backend-name<br />
    balance roundrobin<br />
    timeout check 10000<br />
<br />
    server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
<br />
frontend test-frontend<br />
    bind :19001<br />
<br />
frontend test-frontend<br />
    bind :19002<br />
<br />
Is this me misinterpreting how things should work or something else going on?<br />
<br />
Regards,<br />
Damien]]></description>
            <dc:creator>Damien Churchill</dc:creator>
            <category>HAProxy</category>
            <pubDate>Wed, 20 Jun 2012 17:30:01 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,514026,515052#msg-515052</guid>
            <title>Re: bind keyword</title>
            <link>http://www.serverphorums.com/read.php?10,514026,515052#msg-515052</link>
            <description><![CDATA[ Hi Damien,<br />
<br />
On Fri, Jun 15, 2012 at 12:53:48PM +0100, Damien Churchill wrote:<br />
&gt; Hi,<br />
&gt; <br />
&gt; In the documentation for 1.4.18 in the keyword matrix it states that<br />
&gt; the bind configuration keyword is only valid within listen or frontend<br />
&gt; sections. However I've created a backend section that not only allows<br />
&gt; the keyword, but also creates a socket (which doesn't seem to respond<br />
&gt; to any requests). Is this a bug or is it intentional? I've included<br />
&gt; the backend snippet to look at.<br />
&gt; <br />
&gt; backend some-backend-name<br />
&gt;     balance roundrobin<br />
&gt;     timeout check 10000<br />
&gt;     bind :1557<br />
&gt; <br />
&gt;     server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
&gt;     option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
<br />
Huh! this is clearly a bug ! I confirm it's still present in 1.5-dev11.<br />
It's amazing nobody ever encountered it before! It's nasty because the<br />
connection is accepted to the listening port, but nothing is done on it<br />
(it's not polled), so the connection remains in CLOSE_WAIT when the<br />
client leaves. I also suspect that this would prevent a soft restart<br />
from doing its job. I have to fix this !<br />
<br />
Thanks for this useful report !<br />
Willy]]></description>
            <dc:creator>Willy Tarreau</dc:creator>
            <category>HAProxy</category>
            <pubDate>Mon, 18 Jun 2012 09:10:02 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?10,514026,514026#msg-514026</guid>
            <title>bind keyword</title>
            <link>http://www.serverphorums.com/read.php?10,514026,514026#msg-514026</link>
            <description><![CDATA[ Hi,<br />
<br />
In the documentation for 1.4.18 in the keyword matrix it states that<br />
the bind configuration keyword is only valid within listen or frontend<br />
sections. However I've created a backend section that not only allows<br />
the keyword, but also creates a socket (which doesn't seem to respond<br />
to any requests). Is this a bug or is it intentional? I've included<br />
the backend snippet to look at.<br />
<br />
backend some-backend-name<br />
    balance roundrobin<br />
    timeout check 10000<br />
    bind :1557<br />
<br />
    server localhost 127.0.0.1:80 weight 1 check inter 2000 fall 3<br />
    option httpchk HEAD / HTTP/1.1\r\nHost:localhost<br />
<br />
Regards,<br />
Damien]]></description>
            <dc:creator>Damien Churchill</dc:creator>
            <category>HAProxy</category>
            <pubDate>Fri, 15 Jun 2012 14:00:02 +0200</pubDate>
        </item>
    </channel>
</rss>
