1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-03 10:51:49 -05:00
Daniel Stenberg e8e7ef3612
Curl_timeleft: check both timeouts during connect
The duration of a connect and the total transfer are calculated from two
different time-stamps. It can end up with the total timeout triggering
before the connect timeout expires and we should make sure to
acknowledge whichever timeout that is reached first.

This is especially notable when a transfer first sits in PENDING, as
that time is counted in the total time but the connect timeout is based
on the time since the handle changed to the CONNECT state.

The CONNECTTIMEOUT is per connect attempt. The TIMEOUT is for the entire
operation.

Fixes #6744
Closes #6745
Reported-by: Andrei Bica
Assisted-by: Jay Satiro
2021-03-17 00:28:44 +01:00
2020-08-04 09:52:52 +02:00
2021-02-23 12:04:29 +00:00
2021-02-25 18:20:33 +01:00
2020-11-05 08:22:10 +01:00
2021-02-18 11:21:04 +00:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2021-02-05 08:46:11 +01:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2017-02-07 08:20:10 +01:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2020-11-05 08:22:10 +01:00
2020-11-04 23:59:47 +01:00
2020-11-04 23:59:47 +01:00
2021-03-16 17:27:22 +01:00
2020-03-30 08:53:25 +02:00

curl logo

CII Best Practices Coverity passed Travis-CI Build Status AppVeyor Build Status Azure DevOps Build Status Cirrus Build Status Backers on Open Collective Sponsors on Open Collective Language Grade: C/C++ Codacy Badge Fuzzing Status

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how!

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Website

Visit the curl website for the latest news and downloads.

Git

To download the very latest source from the Git server do this:

git clone https://github.com/curl/curl.git

(you'll get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public!

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Description
No description provided
Readme 113 MiB
Languages
C 66.7%
Python 12.4%
M4 6.9%
Perl 6.7%
DIGITAL Command Language 2.9%
Other 4.3%