Re: Bug or enhancement on Haproxy

From: Willy Tarreau <>
Date: Mon, 31 Mar 2008 07:36:41 +0200

Hi Romuald,

On Thu, Mar 27, 2008 at 11:02:11AM +0100, Romuald du Song wrote:
> Hy everybody,
> When we change our haproxy configuration file we use those switches :
> /usr/local/sbin/$BASENAME -D -f $CONFIG -p $PIDFILE -sf $(cat $PIDFILE)
> to relaunch haproxy. It works allrigth.
> But if there is a new proxy defined on a port that haproxy cannot bind on
> haproxy quits. So all your services are down !
> I'd rather like it to keep serving other proxies.
> Does it make sense to anyone else ?

Seems strange to me, because the old process only goes away once the new one has *completely* started.

On systems with SO_REUSEPORT (*BSD, patched linux), the start up goes like this :

On systems without SO_REUSEPORT (linux, solaris, ...) what happens in your case above becomes this :

If this is not what you have observed, obviously there is a problem somewhere. What precise system (and version) are you running this on, and what haproxy version ? If you could send a small configuration which triggers the problem, it would help a lot.

Willy Received on 2008/03/31 07:36

This archive was generated by hypermail 2.2.0 : 2008/03/31 07:45 CEST