diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-29 13:41:48 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-29 13:41:48 +0000 |
commit | 59907ebc0e4031e2447b57684d530da22a5d32c7 (patch) | |
tree | 9f4d5d81c5f99b3b15ea478aede9a24de7906088 /lib/url.c | |
parent | da91d6ac66c57ae07910c8bc8185dc4226c11d38 (diff) |
fixed the host/proxy name issue when re-using a connection and made IDN names
work when using proxy by converting the IDN-name to the ACE-encoded version
before the request-URL is passed to the proxy.
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -2963,12 +2963,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, /* get the newly set value, not the old one */ conn->bits.no_body = old_conn->bits.no_body; - free(conn->host.rawalloc); /* free the newly allocated name buffer */ - conn->host.rawalloc = old_conn->host.rawalloc; /* use the old one */ - conn->host.name = old_conn->host.name; - - conn->host.encalloc = old_conn->host.encalloc; /* use the old one */ - conn->host.dispname = old_conn->host.dispname; + free(old_conn->host.rawalloc); /* free the newly allocated name buffer */ free(conn->pathbuffer); /* free the newly allocated path pointer */ conn->pathbuffer = old_conn->pathbuffer; /* use the old one */ @@ -3017,7 +3012,8 @@ static CURLcode CreateConnection(struct SessionHandle *data, *in_connect = conn; /* return this instead! */ - infof(data, "Re-using existing connection! (#%d)\n", conn->connectindex); + infof(data, "Re-using existing connection! (#%d) with host %s\n", + conn->connectindex, conn->host.dispname); } else { /* @@ -3381,7 +3377,8 @@ CURLcode Curl_done(struct connectdata *conn) result = res2; } else - infof(data, "Connection #%d left intact\n", conn->connectindex); + infof(data, "Connection #%d to host %s left intact\n", + conn->connectindex, conn->host.dispname); return result; } |