From: Kamil Dudka Date: Tue, 7 Jun 2011 13:57:13 +0000 (+0200) Subject: disconnect: wipe out the keeps_speed time stamp X-Git-Tag: curl-7_21_7~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f551aa5c1676a8a7d9b0683f047cd6f3fa1b4676;p=thirdparty%2Fcurl.git 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 --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c0f562e799..0475f9fbf6 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 d37fe6dfc9..c5b642fde9 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; }