<div dir="ltr"><div><div><div><div><div><div>Hello, Maxim,<br><br></div>As I'm new to nginx, please point out if I'm wrong.<br><br></div>The reason why we should have multiply tries is we may fail when we bind(). That is because the address and port<br>
are in use(temporary which  caused by unclean close or others, permanent like another nginx is using) or others.<br><br></div>In the temporary use case, we may wait and retry. Configurable retry make us more probable succeed in that case.<br>
<br></div>By the way, one other TODO in the source code is the configurable wait time. I think we do not need it when we have <br>retry.<br><br></div>Anyway, in most cases, we succeed in the first try and go on.<br><br></div>
Thanks<br><div><div><div><div><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-07 21:46 GMT+08:00 Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello!<br>
<div class=""><br>
On Mon, Apr 07, 2014 at 04:34:52PM +0800, Han Cheng wrote:<br>
<br>
><br>
> Hello, there,<br>
><br>
> I'm a new guy to nginx.<br>
> Recently, I'm reading the source code. I found some TODOs. I'm trying to<br>
> implement some. This is my first small attempt.<br>
><br>
> Any suggestion?<br>
<br>
</div>It doesn't looks like it actually needs to be configurable.  I<br>
don't recall any single request to make this configurable, nor any<br>
single use case where it may help.<br>
<span class=""><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" target="_blank">http://nginx.org/</a><br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br><div>Cheng<br></div>
</div></div></div></div></div></div></div></div></div>