aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
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
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c1
1 files changed, 1 insertions, 0 deletions
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;
}