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:
parent
94216227ea
commit
1153d3d05c
@ -5,6 +5,12 @@
|
|||||||
potentially long-running sessions. Based on suggestions by Saso
|
potentially long-running sessions. Based on suggestions by Saso
|
||||||
Tomat <miskox@hotmail.com> and Steven M. Schweda
|
Tomat <miskox@hotmail.com> and Steven M. Schweda
|
||||||
<sms@antinode.org>.
|
<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>
|
2007-09-25 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
|
@ -362,7 +362,12 @@ connect_to_host (const char *host, int port)
|
|||||||
|
|
||||||
retry:
|
retry:
|
||||||
if (!al)
|
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);
|
address_list_get_bounds (al, &start, &end);
|
||||||
for (i = start; i < end; i++)
|
for (i = start; i < end; i++)
|
||||||
|
@ -1632,6 +1632,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
|||||||
if (host_lookup_failed)
|
if (host_lookup_failed)
|
||||||
{
|
{
|
||||||
request_free (req);
|
request_free (req);
|
||||||
|
logprintf(LOG_NOTQUIET,
|
||||||
|
_("%s: unable to resolve host address `%s'\n"),
|
||||||
|
exec_name, relevant->host);
|
||||||
return HOSTERR;
|
return HOSTERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user