Skip to content

Commit b37b523

Browse files
Zdenek Pavlaskdudka
authored andcommitted
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 9dd85bc. Bug: https://bugzilla.redhat.com/906031
1 parent c68c7e5 commit b37b523

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RELEASE-NOTES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ This release includes the following bugfixes:
3030
o CURL_CHECK_CA_BUNDLE: don't check for paths when cross-compiling [4]
3131
o Various documentation updates
3232
o getinfo.c: reset timecond when clearing session-info variables [5]
33+
o FILE: prevent an artificial timeout event due to stale speed-check data [6]
3334
o
3435

3536
This release includes the following known bugs:
@@ -53,4 +54,4 @@ References to bug reports and discussions on issues:
5354
[3] = http://curl.haxx.se/mail/lib-2013-02/0102.html
5455
[4] = http://curl.haxx.se/mail/lib-2013-04/0294.html
5556
[5] = http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=705783
56-
[6] =
57+
[6] = https://bugzilla.redhat.com/906031

lib/url.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5193,6 +5193,9 @@ static CURLcode create_conn(struct SessionHandle *data,
51935193
-1, NULL); /* no upload */
51945194
}
51955195

5196+
/* since we skip do_init() */
5197+
Curl_speedinit(data);
5198+
51965199
return result;
51975200
}
51985201
#endif

0 commit comments

Comments
 (0)