/ Zope / Apsis / Pound Mailing List / Archive / 2005 / 2005-11 / [patch] Stop pound from connecting to itself before binding (v1.9.4)

[ << ] [ >> ]

[ [Pound Mailing List] Pound - v2.0b1 / "MW ... ] [ [patch] Fetch configurable URL in alive-checking ... ]

[patch] Stop pound from connecting to itself before binding (v1.9.4)
Rune Saetre <rune.saetre(at)netcom-gsm.no>
2005-11-04 20:59:28 [ FULL ]
Hi

This patch stops pound 1.9.4 from trying to connect to itself before 
binding when it is set up to listen to a specific IP address.

We needed to add this patch in order to make pound work using CARP (vrrp 
replacement in openbsd) and vrrpd on linux. Without this patch pound tried 
to connect to IP/ports it was to listen on before binding to them, and 
then just exit if the connect succeeded. This prevented the standby node 
from starting as long as the primary node was running.

Of course bind will fail if the IP/port is already in use, so this connect 
test should be entirely unneeded.

The patch only removes the connect test, and should also be easy to port 
to v2.

Regards
Rune

---
Rune Sætre <rune.saetre(at)netcom-gsm.no>
NetCom as, Infrastructure
..
Attachments:  
patch_pound194_noconntest.diff.gz application/octet-stream 720 Bytes

Re: [Pound Mailing List] [patch] Stop pound from connecting to itself before binding (v1.9.4)
Mike Artis <mike.artis(at)gmail.com>
2005-11-07 21:30:31 [ FULL ]
This particular problem has been a big draw back here.  I'm running
Pound on OpenBSD using CARP for fail over.  We haven't released the
product to the public yet that will run behind Pound, so it's been
very low traffic for now, but we expect to have a lot of users soon.

Can you send the patch to the list so I can apply it here?

Thanks,
Mike

On 11/4/05, Rune Saetre <rune.saetre(at)netcom-gsm.no> wrote:[...]

Re: [Pound Mailing List] [patch] Stop pound from connecting to itself before binding (v1.9.4)
Rune Saetre <rune.saetre(at)netcom-gsm.no>
2005-11-07 22:22:03 [ FULL ]
Hi

The patch was sent to the list, but it is stripped out before the mails 
are forwarded to the subscribers. All attachments will no be available 
only from the mail archive page.

Have a look here for this patch:
   http://www.apsis.ch/pound/pound_list/archive/2005/2005-11/1131134368000#1131395431000

According to Robert Segall version 2 does not try to connect to itself 
before binding. You could try out that as well.

Regards
Rune

---
Rune Sætre <rune.saetre(at)netcom-gsm.no>
NetCom as, Infrastructure
..

On Mon, 7 Nov 2005, Mike Artis wrote:
[...][...][...]

MailBoxer