<div dir="ltr">hi Ruslan<br><br>>Please try the attached patch. If you would like an attribution<br>>in a commit log, please tell me your real name.<br><div class="gmail_extra"><br>thanks for the patch<br><br>I have a little idea, in ngx_resolver_timeout_handler function find the next timeout request and add a timer if the time interval between two requests exceeds the threshold, what do you think about it?<br>
<br>because this patch will appear premature timeout. For example if resolver_timeout set to 5 seconds, the first request arrived at one second, another request arrived at five seconds. Then when the the first request timeout, the second request immediately returned because of they were pending for the same dns query.<br>
but the desired result is nginx will try to resend the dns query and if success the second request process normal otherwise timeout at ten second.<br><br><br clear="all"><br>-- <br><div dir="ltr"><div>ywsample :)<br></div>
<div><div><br></div></div></div>
</div></div>