]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: implement non-blocking STDIN read on Windows
authorDoI <5291556+denandz@users.noreply.github.com>
Tue, 10 Jun 2025 11:13:35 +0000 (23:13 +1200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 21 Jun 2025 09:04:29 +0000 (11:04 +0200)
commit9a2663322c330ff11275abafd612e9c99407a94a
treed9dd5024a097133d7cbcaf3a45d1aa37ce8b6960
parent84b62696d93695cd936b33c7917186df240ee291
curl: implement non-blocking STDIN read on Windows

Implements a seperate read thread for STDIN on Windows when curl is run
with -T/--upload-file .

This uses a similar technique to the nmap/ncat project, spawning a
seperate thread which creates a loop-back bound socket, sending STDIN
into this socket, and reading from the other end of said TCP socket in a
non-blocking way in the rest of curl.

Fixes #17451
Closes #17572
src/tool_cb_rea.c
src/tool_doswin.c
src/tool_doswin.h
src/tool_operate.c