9d7d3f
From fd5664bc7322ebffb8d5532d17a743ace8a5449e Mon Sep 17 00:00:00 2001
9d7d3f
From: Zdenek Pavlas <zpavlas@redhat.com>
9d7d3f
Date: Fri, 26 Apr 2013 14:56:38 +0200
9d7d3f
Subject: [PATCH 2/2] url: initialize speed-check data for file:// protocol
9d7d3f
9d7d3f
... in order to prevent an artificial timeout event based on stale
9d7d3f
speed-check data from a previous network transfer.  This commit fixes
9d7d3f
a regression caused by 9dd85bced56f6951107f69e581c872c1e7e3e58e.
9d7d3f
9d7d3f
Bug: https://bugzilla.redhat.com/906031
9d7d3f
9d7d3f
[upstream commit b37b5233cab96b5b1f2ab7f6e0b9c3df77320bba]
9d7d3f
9d7d3f
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
9d7d3f
---
9d7d3f
 lib/url.c |    3 +++
9d7d3f
 1 files changed, 3 insertions(+), 0 deletions(-)
9d7d3f
9d7d3f
diff --git a/lib/url.c b/lib/url.c
9d7d3f
index 918ce58..b269027 100644
9d7d3f
--- a/lib/url.c
9d7d3f
+++ b/lib/url.c
9d7d3f
@@ -4895,6 +4895,9 @@ static CURLcode create_conn(struct SessionHandle *data,
9d7d3f
                           -1, NULL); /* no upload */
9d7d3f
     }
9d7d3f
 
9d7d3f
+    /* since we skip do_init() */
9d7d3f
+    Curl_speedinit(data);
9d7d3f
+
9d7d3f
     return result;
9d7d3f
   }
9d7d3f
 #endif
9d7d3f
-- 
9d7d3f
1.7.1
9d7d3f