]> granicus.if.org Git - curl/commitdiff
make sure the connection is closed when it was detected reset!
authorDaniel Stenberg <daniel@haxx.se>
Fri, 30 Jan 2004 12:41:27 +0000 (12:41 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 30 Jan 2004 12:41:27 +0000 (12:41 +0000)
lib/transfer.c

index 8e5d6abd39d9f29c89b081d171b0e00b2592655b..ac23b11c8017dcaf29e91fbdc05067bf24053f2d 100644 (file)
@@ -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
             /*