aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 8e5d6abd3..ac23b11c8 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1908,6 +1908,8 @@ CURLcode Curl_perform(struct SessionHandle *data)
to retry! */
infof(data, "Connection reset, retrying a fresh connect\n");
newurl = strdup(conn->data->change.url);
+
+ conn->bits.close = TRUE; /* close this connection */
}
else
/*