aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 3ca6aa3ce..f917ed595 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -570,6 +570,10 @@ void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd)
struct SessionHandle *data = conn->data;
struct PureInfo *info = &conn->data->info;
+ if(conn->bits.reuse)
+ /* reusing same connection */
+ return;
+
len = sizeof(struct Curl_sockaddr_storage);
if(getpeername(sockfd, (struct sockaddr*) &ssrem, &len)) {
error = SOCKERRNO;