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

[svn] Fix call to socket_ip_address.

This commit is contained in:
hniksic 2003-11-14 18:03:23 -08:00
parent 8e330fdba0
commit 36387204b0
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,13 @@
2003-11-15 Hrvoje Niksic <hniksic@xemacs.org>
* http.c (persistent_available_p): Correctly specify the endpoint
argument to socket_ip_address.
(gethttp): When printing the "reusing connection to..." message,
specify the host name of the reused connection, not the current
host name. That makes more sense because it provides a useful
piece of information -- we know to which host we're supposed to
connect anyway!
2003-11-15 Hrvoje Niksic <hniksic@xemacs.org> 2003-11-15 Hrvoje Niksic <hniksic@xemacs.org>
* init.c: Make sure the options are in alphabetic order! * init.c: Make sure the options are in alphabetic order!

View File

@ -460,7 +460,7 @@ persistent_available_p (const char *host, int port, int ssl,
resolves to, pconn.socket is for all intents and purposes resolves to, pconn.socket is for all intents and purposes
already talking to HOST. */ already talking to HOST. */
if (!socket_ip_address (pconn.socket, &ip, 0)) if (!socket_ip_address (pconn.socket, &ip, ENDPOINT_PEER))
{ {
/* Can't get the peer's address -- something must be very /* Can't get the peer's address -- something must be very
wrong with the connection. */ wrong with the connection. */
@ -739,10 +739,8 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
} }
else else
{ {
logprintf (LOG_VERBOSE, _("Reusing connection to %s:%hu.\n"), logprintf (LOG_VERBOSE, _("Reusing existing connection to %s:%d.\n"),
conn->host, conn->port); pconn.host, pconn.port);
/* #### pc_last_fd should be accessed through an accessor
function. */
sock = pconn.socket; sock = pconn.socket;
using_ssl = pconn.ssl; using_ssl = pconn.ssl;
DEBUGP (("Reusing fd %d.\n", sock)); DEBUGP (("Reusing fd %d.\n", sock));