diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-09-17 22:58:08 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-09-17 22:58:08 +0200 |
commit | 3880dd3741204965dde312643a18190a24c66ba9 (patch) | |
tree | 1af977e97742ca900e2b6f0f433867683a4c8328 /tests/data/test194 | |
parent | d8041a7ea58609f3b64900e243d7b85852d9c6af (diff) |
Curl_timeleft: avoid returning "no timeout" by mistake
As this function uses return code 0 to mean that there is no timeout, it
needs to check that it doesn't return a time left value that is exactly
zero. It could lead to libcurl doing an extra 1000 ms select() call and
thus not timing out as accurately as it should.
I fell over this bug when working on the bug 3061535 but this fix does
not correct that problem alone, although this is a problem that needs to
be fixed.
Reported by: Rodric Glaser
Bug: http://curl.haxx.se/bug/view.cgi?id=3061535
Diffstat (limited to 'tests/data/test194')
0 files changed, 0 insertions, 0 deletions