]> granicus.if.org Git - curl/commitdiff
url: initialize speed-check data for file:// protocol
authorZdenek Pavlas <zpavlas@redhat.com>
Fri, 26 Apr 2013 12:56:38 +0000 (14:56 +0200)
committerKamil Dudka <kdudka@redhat.com>
Fri, 26 Apr 2013 13:38:22 +0000 (15:38 +0200)
... 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

RELEASE-NOTES
lib/url.c

index c4c82bcd0f68b10667e2af8c3e221e340e82aea8..dfcac326be9e44dc8f9a32805ba5d37e852bf22b 100644 (file)
@@ -30,6 +30,7 @@ This release includes the following bugfixes:
  o CURL_CHECK_CA_BUNDLE: don't check for paths when cross-compiling [4]
  o Various documentation updates
  o getinfo.c: reset timecond when clearing session-info variables [5]
+ o FILE: prevent an artificial timeout event due to stale speed-check data [6]
  o 
 
 This release includes the following known bugs:
@@ -53,4 +54,4 @@ References to bug reports and discussions on issues:
  [3] = http://curl.haxx.se/mail/lib-2013-02/0102.html
  [4] = http://curl.haxx.se/mail/lib-2013-04/0294.html
  [5] = http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705783
- [6] = 
+ [6] = https://bugzilla.redhat.com/906031
index cef8a9806a7c4fef6d8661e1c2be55955868dffd..b1ba8f1df851261239fe7c0ff4b20d2b93651a33 100644 (file)
--- 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