1
0
Fork 0
mirror of https://github.com/curl/curl.git synced 2026-08-31 22:20:13 +02:00
A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, (T/S)FTP(S), GOPHER(S), HTTP(S), IMAP(S), LDAP(S), MQTT, POP3(S), RTMP(S), RTSP, SCP, SMB(S), SMTP(S) and TELNET. libcurl offers a myriad of powerful features
  • C 74.9%
  • Perl 7.9%
  • Python 5.7%
  • M4 4.4%
  • CMake 2.7%
  • Other 4.3%
Find a file
Stefan Eissing 9b2caf34f5
transfer: DID handling
When a transfer leaves its DID state and goes to PERFORM, it should
not hog the multi processing when there are other transfers alive.
Make multistate_did() return CURLM_OK then which triggers the
processing of the next easy handle.

This gives more fairness among easy handles:
- on a fast server, responses may arrive very quickly and processing
  a response is costly. All this time is then lost to other transfers
  that have not even sent their request
- on a slow server, directly trying to receive the response will not
  work and is an unnecessary network call.

Local scorecard tests with h1 requests showed that the former handling
was only using 10 connections for 40 parallel requests after an
initial peak of 40 connections. The change makes libcurl use all 40
connections continuously.

This also explains the h1-requests memory use development. When we
closed connections more aggressively, the 40 initial connections
shrank and released their memory. But the parallelism was not good.

Closes #22763
2026-08-31 14:58:00 +02:00
.circleci circleci: bump images to their latest revision 2026-08-24 11:02:04 +02:00
.github GHA/non-native: disable riscv64 FreeBSD job due to upstream issue 2026-08-31 11:38:37 +02:00
CMake tidy-up: minimum version comments and messages 2026-08-26 12:45:27 +02:00
docs conncache: guess maxconnects different 2026-08-31 10:59:00 +02:00
include include: include <sys/select.h> when building for modern Linux. 2026-08-28 16:34:29 +02:00
lib transfer: DID handling 2026-08-31 14:58:00 +02:00
LICENSES spacecheck: check long lines and repeat spaces, fix fallouts 2026-03-25 11:02:08 +01:00
m4 tidy-up: minimum version comments and messages 2026-08-26 12:45:27 +02:00
projects os400: rewrite upper ebcdic wrappers using dynbuf 2026-08-28 14:14:53 +02:00
scripts tests: enable and fix some new Python ruff warnings 2026-08-29 20:22:24 -07:00
src tidy-up: drop redundant parentheses 2026-08-30 18:25:23 +02:00
tests winsock: drop redundant version checks at initialization 2026-08-31 14:30:36 +02:00
.clang-tidy.yml tidy-up: minimum version comments and messages 2026-08-26 12:45:27 +02:00
.dir-locals.el copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.editorconfig .editorconfig: add 2025-09-02 08:36:40 +02:00
.git-blame-ignore-revs copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitattributes buildconf: remove 2026-04-04 11:35:24 +02:00
.gitignore gitignore: maintenance updates 2026-07-30 12:00:22 +02:00
.mailmap mailmap: Ralf Mueller 2026-08-12 16:23:58 +02:00
acinclude.m4 build: assume POSIX select() is available 2026-07-31 12:38:52 +02:00
appveyor.sh CI: dump libcurl.pc (and curl-config) to log, verify .pc with pccritic tool 2026-08-12 12:53:06 +02:00
appveyor.yml appveyor: sync Debug options in two jobs 2026-08-10 19:42:22 +02:00
CHANGES.md CHANGES: fix typo in filename 2026-01-01 12:20:10 +01:00
CMakeLists.txt tidy-up: minimum version comments and messages 2026-08-26 12:45:27 +02:00
configure.ac tidy-up: minimum version comments and messages 2026-08-26 12:45:27 +02:00
COPYING COPYING: bump copyright year range to 1996 - 2026 2026-01-08 23:19:44 +01:00
curl-config.in autotools: tidy-up if expressions 2025-12-10 22:29:19 +01:00
Dockerfile Dockerfile: update debian:bookworm-slim Docker digest to 8820086 2026-08-25 11:15:52 +02:00
GIT-INFO.md docs/INTERNALS.md -> docs/DEPENDENCIES.md 2026-07-29 14:20:36 +02:00
libcurl.pc.in libcurl.pc: Add Copyright tag to the pkgconf file 2026-08-13 10:11:41 -07:00
Makefile.am Makefile.am: improve etags 2026-08-27 10:02:21 +02:00
README tidy-up: comments, messages, formatting 2026-07-30 11:26:22 +02:00
README.md rtmp: drop support 2026-03-21 14:56:06 +01:00
RELEASE-NOTES RELEASE-NOTES: synced 2026-08-28 16:14:45 +02:00
renovate.json renovate: use standard bump formula for OpenSSL 2026-04-15 10:17:33 +02:00
REUSE.toml github: Add AI usage warning to issue, doc and PR templates 2026-06-02 13:47:01 -04:00
SECURITY.md stop using the word 'just' 2026-03-03 15:30:22 +01:00

curl logo

curl is a command-line tool for transferring data from or to a server using URLs. It supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, MQTTS, POP3, POP3S, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS.

Learn how to use curl by reading the man page or everything curl.

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 man page to learn how.

Open Source

curl is Open Source and is distributed under an MIT-like license.

Contact

Contact us on a suitable mailing list or use GitHub issues/ pull requests/ discussions.

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.

Source code

Download the latest source from the Git server:

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

Security problems

Report suspected security problems privately and not in public.

Backers

Thank you to all our backers 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.