]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: alter transfer timeout ordering
authorRichard Whitehouse <richard.whitehouse@metaswitch.com>
Thu, 30 Nov 2017 16:56:53 +0000 (16:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 Jun 2021 13:51:39 +0000 (15:51 +0200)
commit0842175fa46a2f02bc95af3cafd6901130c562dd
treec9402548db3f64edc3ad6805dd83ab6e8417cbc8
parenta5ab72d5edd72eba3485c790b42006d407e6f162
multi: alter transfer timeout ordering

- Check whether a connection has succeded before checking whether it's
  timed out.

  This means if we've connected quickly, but subsequently been
  descheduled, we allow the connection to succeed. Note, if we timeout,
  but between checking the timeout, and connecting to the server the
  connection succeeds, we will allow it to go ahead. This is viewed as
  an acceptable trade off.

- Add additional failf logging around failed connection attempts to
  propogate the cause up to the caller.

Co-Authored-by: Martin Howarth
Closes #7178
lib/connect.c
lib/multi.c
lib/url.c