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
This commit is contained in:
Kamil Dudka 2011-06-07 15:57:13 +02:00
parent 377f88364e
commit f551aa5c16
2 changed files with 2 additions and 0 deletions

View 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:

View File

@ -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;
}