From f551aa5c1676a8a7d9b0683f047cd6f3fa1b4676 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 7 Jun 2011 15:57:13 +0200 Subject: 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 --- lib/url.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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; } -- cgit v1.2.3