multi: timeout handles even without connection

When there is a "change" in a multi handle and pending handles are moved
back to the main list to be retested if they can proceed further (for
example a previous transfer completed or a connection has a confirmed
multiplexed state), the timeout check in multi_runsingle() would not
trigger because it required an established connection.

This could make a pending tranfer go back to pending state even though
it had been "in progress" for a longer time than permitted. By removing
the requirement for an associated connection, the timeout check will be
done proper even for transfers that has not yet been assigned one.

Ref #13227
Reported-by: Rahul Krishna M
Closes #13276
1 file changed
tree: f9047977fe7df32f321548a9d95c12358352e409
  1. .circleci/
  2. .github/
  3. .reuse/
  4. CMake/
  5. docs/
  6. include/
  7. lib/
  8. LICENSES/
  9. m4/
  10. packages/
  11. plan9/
  12. projects/
  13. scripts/
  14. src/
  15. tests/
  16. winbuild/
  17. .azure-pipelines.yml
  18. .cirrus.yml
  19. .dcignore
  20. .dir-locals.el
  21. .git-blame-ignore-revs
  22. .gitattributes
  23. .gitignore
  24. .mailmap
  25. acinclude.m4
  26. appveyor.sh
  27. appveyor.yml
  28. buildconf
  29. buildconf.bat
  30. CHANGES
  31. CMakeLists.txt
  32. configure.ac
  33. COPYING
  34. curl-config.in
  35. GIT-INFO.md
  36. libcurl.def
  37. libcurl.pc.in
  38. Makefile.am
  39. Makefile.dist
  40. maketgz
  41. README
  42. README.md
  43. RELEASE-NOTES
  44. SECURITY.md
README.md

curl logo

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.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

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

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

(you will 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.