[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #20423 [Core Tor/Tor]: Clock jumps on FreeBSD relay due to hostname lookup timeouts
#20423: Clock jumps on FreeBSD relay due to hostname lookup timeouts
--------------------------------+------------------------------------
Reporter: Felixix | Owner:
Type: defect | Status: new
Priority: High | Milestone: Tor: 0.2.9.x-final
Component: Core Tor/Tor | Version: Tor: 0.2.8.9
Severity: Normal | Resolution:
Keywords: regression freebsd | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
--------------------------------+------------------------------------
Comment (by nickm):
Replying to [comment:28 teor]:
> We could improve this issue by avoiding calling getaddrinfo() or
gethostbyname() so often (although it's only being called once per hour,
which is probably the right frequency), or by somehow putting a lower
timeout on it, or by calling it asynchronously.
I think that "calling it asynchronously" is the right answer. We could do
that either from a job that we pass to a worker thread, or using
libevent's evdns resolver. (I believe that might not initialize the
libevent evdns resolver very well, though, so the "use a worker" thing
might be a better option)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20423#comment:29>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs