Fwd: Bug#42343: libc6: gethostbyaddr() can hang indefinitely
Ulrich Drepper
drepper@cygnus.com
Fri Aug 6 20:17:00 GMT 1999
Joel Klecker <jk@espy.org> writes:
> The resolver routines that glibc uses use select() internally. If the
> select() gets interrupted, it gets restarted, but the timeout value
> is re-initialized. If you have a timer in your program that uses
> signal(SIGALRM)/alarm() and it runs more often than the select timeout,
> gethostbyaddr() for example will hang forever if a DNS packet gets lost.
I've fixed this hopefully now for 2.1.2.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-hacker
mailing list