[PATCH] Add the configurable try number for binding

Maxim Dounin mdounin at mdounin.ru
Mon Apr 17 13:11:03 UTC 2017


On Mon, Apr 17, 2017 at 10:56:50AM +0800, Xingyuan wrote:

> # HG changeset patch
> # User Xingyuan <winshining at 163.com>
> # Date 1492252474 -28800
> # Node ID 302e24fbe01d2e20bc8519d9dad71acee6540530
> # Parent  be5cfa918bfc07f378c8f905e5e9349f1825c268
> Add the configurable try number for binding.
> The try number of binding now can be specified in nginx.conf, for example:
> bind_tries  20;
> With it, there can be enough time that when the new nginx process is being
> started while the old one is still running, we can do something, kill it
> for example, instead of waiting for a so short time that new one exceeds
> the try number and exits.

Could you please clarify the use case of the setting?  Do you see 
the need for it in practice?

Maxim Dounin

More information about the nginx-devel mailing list