Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Core: configurable listening try number

Maxim Dounin
April 07, 2014 01:08PM
Hello!

On Mon, Apr 07, 2014 at 11:44:18PM +0800, Han Cheng wrote:

> Hello, Maxim,
>
> As I'm new to nginx, please point out if I'm wrong.
>
> The reason why we should have multiply tries is we may fail when we bind().
> That is because the address and port
> are in use(temporary which caused by unclean close or others, permanent
> like another nginx is using) or others.
>
> In the temporary use case, we may wait and retry. Configurable retry make
> us more probable succeed in that case.

While in theory this may be usefull when, e.g., switching from
other servers to nginx, it's not something expected to happen
during normal operation. Because of this there is no real need to
configure retries - if nginx fails to start because previously
working server isn't stopped in time, administrator will be able
to start nginx again. And if this happens for some reason during
normal operation, probably the problem is anyway fatal and retries
won't help.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Core: configurable listening try number

Han Cheng 640 April 07, 2014 04:36AM

Re: [PATCH] Core: configurable listening try number

Maxim Dounin 307 April 07, 2014 09:48AM

Re: [PATCH] Core: configurable listening try number

Han Cheng 263 April 07, 2014 11:46AM

Re: [PATCH] Core: configurable listening try number

Maxim Dounin 321 April 07, 2014 01:08PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 179
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