aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2011-06-07 15:57:13 +0200
committerKamil Dudka <kdudka@redhat.com>2011-06-08 00:23:41 +0200
commitf551aa5c1676a8a7d9b0683f047cd6f3fa1b4676 (patch)
tree59c87a4fe02a4cb56cc71f4570ca049bd6106398
parent377f88364e7b93c6cae7afef0169d575f272cf80 (diff)
disconnect: wipe out the keeps_speed time stamp
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
-rw-r--r--RELEASE-NOTES1
-rw-r--r--lib/url.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index c0f562e79..0475f9fbf 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -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:
diff --git a/lib/url.c b/lib/url.c
index d37fe6dfc..c5b642fde 100644
--- 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;
}