From 201ea71ffedd767e3ba32c81c8b89249df9bac1c Mon Sep 17 00:00:00 2001
From: Kamil Dudka <kdudka@redhat.com>
Date: Tue, 7 Jun 2011 15:57:13 +0200
Subject: [PATCH] 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
---
 RELEASE-NOTES |    1 +
 lib/url.c     |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index c0f562e..0475f9f 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 d37fe6d..c5b642f 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;
 }
-- 
1.7.4.4


