[Libevent-users] [Patch] Fix a bug related to DNS timeout counting

Niels Provos provos at citi.umich.edu
Mon Dec 11 23:02:51 EST 2006


Thank you.  I have applied the patch to trunk.

Niels.

On 12/11/06, Nick Mathewson <nickm at freehaven.net> wrote:
> Hi, all!  This patch fixes a bug in nameserver timeouts in evdns.c.
> Previously, we would count the number of successive requests that had
> timed out in a row for each nameserver, but we would never actually
> reset the timeout count to zero.  This, obviously, would create
> problems: see the Tor bugtracker entry at
>    http://bugs.noreply.org/flyspray/index.php?id=326&do=details
>
> This patch resets the successive timeout count to zero when:
>    - A nameserver comes up
>    - We receive a reply from a nameserver
>    - We decide to not use the nameserver for a while because of its
>      timeout count.
>
> This patch also changes the timeout threshold from 3 to 5 seconds.
> Probably, it should be easier to adjust.  There may also be other
> issues that cause spurious nameserver timeouts: see the final comment
> in the bugtracker link above.
>
> yrs,
> --
> Nick Mathewson
>
>
> _______________________________________________
> Libevent-users mailing list
> Libevent-users at monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
>
>


More information about the Libevent-users mailing list