On Sat, Apr 02, 2011 at 02:59:39PM +0200, Cyril Bonté wrote:
> Hi Willy,
> 
> Le samedi 2 avril 2011 07:16:53, Willy Tarreau a écrit :
> > > I suspect this kernel commit to be responsible of that behaviour:
> > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit
> > > ;h=c191a836a908d1dd6b40c503741f91b914de3348
> > 
> > Good catch, it looks like you're right indeed. I'll build this kernel
> > for one of my machines and test. If this problem is true, it will have
> > more impacts than haproxy alone, as it will also prevent any fork() based
> > service from being restarted (eg: cannot restart sshd from an ssh session).
> 
> I don't know if you had time to test but I can confirm it comes from this 
> kernel patch, as soon as I remove the TCPF_CLOSE flag condition from the 
> kernel, haproxy is able to rebind the ports on reload.

No, I didn't have time to test yet, I have just pulled the sources but not
started any config nor build.

Would you like to send a bug report on [email protected], and CC me,
Eric Dumazet (the patch author), and maybe Charles who reported the bug ?

Also, could you check if that can also be reproduced with other services ?
The most common one that comes to mind is SSHD. Just login to your machine
via SSH, kill -9 the main daemon and restart it. I suspect it will not be
able to bind anymore until you close your SSH session.

Thank you,
Willy


Reply via email to