From b37b5233cab96b5b1f2ab7f6e0b9c3df77320bba Mon Sep 17 00:00:00 2001 From: Zdenek Pavlas Date: Fri, 26 Apr 2013 14:56:38 +0200 Subject: url: initialize speed-check data for file:// protocol ... in order to prevent an artificial timeout event based on stale speed-check data from a previous network transfer. This commit fixes a regression caused by 9dd85bced56f6951107f69e581c872c1e7e3e58e. Bug: https://bugzilla.redhat.com/906031 --- lib/url.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index cef8a9806..b1ba8f1df 100644 --- a/lib/url.c +++ b/lib/url.c @@ -5193,6 +5193,9 @@ static CURLcode create_conn(struct SessionHandle *data, -1, NULL); /* no upload */ } + /* since we skip do_init() */ + Curl_speedinit(data); + return result; } #endif -- cgit v1.2.3