1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Warn about host resolution failure.

This commit is contained in:
Micah Cowan 2007-10-02 22:12:04 -07:00
parent 94216227ea
commit 1153d3d05c
3 changed files with 15 additions and 1 deletions

View File

@ -5,6 +5,12 @@
potentially long-running sessions. Based on suggestions by Saso
Tomat <miskox@hotmail.com> and Steven M. Schweda
<sms@antinode.org>.
* http.c (gethttp): Warn about host lookup failures. Adjusted
from Stephen Gildea's patch.
2007-10-02 Stephen Gildea <stepheng+wget@gildea.com>
* connect.c (connect_to_host): Warn about host lookup failures.
2007-09-25 Micah Cowan <micah@cowan.name>

View File

@ -362,7 +362,12 @@ connect_to_host (const char *host, int port)
retry:
if (!al)
return E_HOST;
{
logprintf (LOG_NOTQUIET,
_("%s: unable to resolve host address `%s'\n"),
exec_name, host);
return E_HOST;
}
address_list_get_bounds (al, &start, &end);
for (i = start; i < end; i++)

View File

@ -1632,6 +1632,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
if (host_lookup_failed)
{
request_free (req);
logprintf(LOG_NOTQUIET,
_("%s: unable to resolve host address `%s'\n"),
exec_name, relevant->host);
return HOSTERR;
}