Permalink
Browse files

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
  • Loading branch information...
1 parent 377f883 commit f551aa5c1676a8a7d9b0683f047cd6f3fa1b4676 @kdudka kdudka committed Jun 7, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 RELEASE-NOTES
  2. +1 −0 lib/url.c
View
1 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:
View
1 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;
}

0 comments on commit f551aa5

Please sign in to comment.