diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-08-02 10:57:30 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-08-04 00:26:01 +0200 |
commit | bde2f09d5e4c4a3b2826aefdda0a10c07bbb551a (patch) | |
tree | d547dda6be69a0740afb2c8939ade8a2d3c3d7df /lib/multiif.h | |
parent | 6eb60c2dc589a15ff8a3aa5961745d86044a9b78 (diff) | |
download | curl-bde2f09d5e4c4a3b2826aefdda0a10c07bbb551a.tar.gz |
multi: make Curl_expire() work with 0 ms timeouts
Previously, passing a timeout of zero to Curl_expire() was a magic code
for clearing all timeouts for the handle. That is now instead made with
the new Curl_expire_clear() function and thus a 0 timeout is fine to set
and will trigger a timeout ASAP.
This will help removing short delays, in particular notable when doing
HTTP/2.
Diffstat (limited to 'lib/multiif.h')
-rw-r--r-- | lib/multiif.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multiif.h b/lib/multiif.h index fd2df556a..eaff496ea 100644 --- a/lib/multiif.h +++ b/lib/multiif.h @@ -26,6 +26,7 @@ * Prototypes for library-wide functions provided by multi.c */ void Curl_expire(struct Curl_easy *data, long milli); +void Curl_expire_clear(struct Curl_easy *data); void Curl_expire_latest(struct Curl_easy *data, long milli); bool Curl_pipeline_wanted(const struct Curl_multi* multi, int bits); void Curl_multi_handlePipeBreak(struct Curl_easy *data); |