Jay Satiro 0510cce8c0 socks: Fix blocking timeout logic
- Document in Curl_timeleft's comment block that returning 0 signals no
  timeout (ie there's infinite time left).

- Fix SOCKS' Curl_blockread_all for the case when no timeout was set.

Prior to this change if the timeout had a value of 0 and that was passed
to SOCKET_READABLE it would return right away instead of blocking. That
was likely because it was not well understood that when Curl_timeleft
returns 0 it is not a timeout of 0 ms but actually means no timeout.

Ref: https://github.com/curl/curl/pull/5214#issuecomment-612512360

Closes https://github.com/curl/curl/pull/5220
2020-04-12 18:32:16 -04:00
..
2019-03-15 10:22:42 +01:00
2019-03-15 10:22:42 +01:00
2020-02-09 02:27:29 -05:00
2020-04-12 18:32:16 -04:00
2020-01-21 10:34:44 +01:00
2020-03-31 11:02:18 +02:00
2019-11-08 14:51:42 +01:00
2019-11-16 16:15:03 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2018-09-23 22:24:02 +00:00
2019-11-08 14:51:42 +01:00
2019-05-13 08:17:09 +02:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2018-06-11 11:14:48 +02:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2018-12-10 00:10:04 +01:00
2020-03-31 09:44:23 +02:00
2019-05-17 23:24:34 +02:00
2019-11-08 14:51:42 +01:00
2018-09-23 22:24:02 +00:00
2020-02-18 07:49:15 +01:00
2020-02-18 07:49:15 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2018-07-30 17:59:36 +02:00
2020-02-28 16:52:33 +01:00
2020-04-12 18:32:16 -04:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2020-02-19 08:04:35 +01:00
2019-07-11 02:27:04 -04:00
2019-11-08 14:51:42 +01:00
2019-11-08 14:51:42 +01:00
2020-02-19 08:04:35 +01:00