bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] localhost.c


From: kyle gibson
Subject: [bug-inetutils] localhost.c
Date: Tue, 25 May 2004 00:26:34 -0400
User-agent: Opera7.23/Linux M2 build 518

On line 90 of localhost.c:

struct hostent *hp = gethostbyname(buf);

The above call (may) persist for an unreasonably long time before failing.

I realize that a solution would be to insert "127.0.0.1 <domain that I use>" into the /etc/hosts file, but, it may be worth it to consider setting up surrounding debug information, and perhaps a timeout of some sort. Specifically, the telnet command, would hang for nearly 30 seconds before continuing on. The '-d' (debug) flag did not indicate what was going on. Investigating the code, I discovered the above function call to be the issue.

--
-kyle

to be free or not to be free. the answer is linux.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]