|
|
Bartlomiej Solarz-Niesluchowski wrote: At 23:01 2005-05-11, you wrote: The host command is of course a single instance which is terminated and reloads the resolver code at each invocation. I looked in socket.c I believe it will retry for quite some time, possibly configurable. /*
* Resolve hostname
*/
while (true)
{
/* try hostname lookup */
h = gethostbyname (hostname);if (signal_received) { get_signal (signal_received); if (*signal_received) /* were we interrupted by a signal? */ { h = NULL; if (*signal_received == SIGUSR1) /* ignore SIGUSR1 */ { msg (level, "RESOLVE: Ignored SIGUSR1 signal received during DNS resolution attempt"); *signal_received = 0; } else goto done; } } /* success? */ if (h) break; /* resolve lookup failed, should we
continue or fail? */ level = msglevel;
if (resolve_retries > 0)
level = D_RESOLVE_ERRORS; msg (level,
fmt,
hostname,
h_errno_msg (h_errno)); if (--resolve_retries <= 0)
goto done; openvpn_sleep (fail_wait_interval);
}cheers Erich ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users |