]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
disconnect: wipe out the keeps_speed time stamp
authorKamil Dudka <kdudka@redhat.com>
Tue, 7 Jun 2011 13:57:13 +0000 (15:57 +0200)
committerKamil Dudka <kdudka@redhat.com>
Tue, 7 Jun 2011 22:23:41 +0000 (00:23 +0200)
When closing a connection, the speedchecker's timestamp is now deleted
so that it cannot accidentally be used by a fresh connection on the same
handle when examining the transfer speed.

Bug: https://bugzilla.redhat.com/679709

RELEASE-NOTES
lib/url.c

index c0f562e7990bed12937fc45e525de8dcf364cbf2..0475f9fbf658f17ae4fd0334261a556d75e4b72c 100644 (file)
@@ -23,6 +23,7 @@ This release includes the following bugfixes:
  o GnuTLS handshake: fix timeout
  o cyassl: build without filesystem
  o HTTPS over HTTP proxy using the multi interface
+ o speedcheck: invalid timeout event on a reused handle
 
 This release includes the following known bugs:
 
index d37fe6dfc9c5adce09bab732de90b321f2d24f83..c5b642fde9bae595ae8c9cf0c091b4a7d8e598c5 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -2675,6 +2675,7 @@ CURLcode Curl_disconnect(struct connectdata *conn, bool dead_connection)
 
   conn_free(conn);
   data->state.current_conn = NULL;
+  Curl_speedinit(data);
 
   return CURLE_OK;
 }