Welcome! Log In Create A New Profile

Advanced

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

January 24, 2018 02:20AM
Hello!

> I have a script runs two successive reloads, the first one is to remove a
listen port from the stream block, and the second one is to add the same
port back to the stream block. It is observed that > most time the script
would run into "bind() xxxx failed, Address already in use" error. After
putting a sleep 1 in between these two reloads I never get that error
again.

How does you send “reload” command? Through the nginx -s reload or sending
signal to the master process directly?

> So I guess the listening socket was not released in the time the second
reload was issued?

> How the listening socket is getting released during reload?

The old unnecessary listening sockets will be closed after nginx master
process opens the new listening sockets.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Quick successive reload makes "bind () xxxx failed, Address already in use" error

Anonymous User January 23, 2018 10:16PM

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

方坤 January 23, 2018 10:16PM

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

tokers January 24, 2018 02:20AM

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

oscaretu . January 24, 2018 02:24AM

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

Anonymous User January 24, 2018 03:00AM

Re: Quick successive reload makes "bind () xxxx failed, Address already in use" error

Francis Daly January 27, 2018 08:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready