Subject: Re: [htdig3-dev] Alarm clock
From: Geoff Hutchison (email@example.com)
Date: Sat Feb 26 2000 - 17:04:13 PST
At 7:11 PM +0200 2/23/00, Valdas Andrulis wrote:
>~/htdig-3.2.0/bin$ ./htdig -v -i
>ht://dig Start Time: Wed Feb 23 19:05:08 2000
>New server: humoro.centras.lt, 80
>What does it mean? Shoudn't program just retry or forget this server and
>continue with others? I think this alarm is in htnet code.
Hmm. The alarm isn't supposed to kill it! The alarm comes from here:
// Set an alarm to make sure the connect() call times out
// This ensures the call won't hang on a dead server or
bad DNS call
status = ::connect(sock, (struct sockaddr *)&server,
if (status < 0 && errno == EINTR && !allow_EINTR)
Previously, people reported that the ::connect would never time out,
or at least until the OS decided to kill off that socket (often quite
long). So on the advice of a few people, I put in the alarm. Now I
haven't used alarms too often--am I missing something?
To unsubscribe from the htdig3-dev mailing list, send a message to
You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Sat Feb 26 2000 - 17:18:23 PST