Skip to content

-T . / --upload-file . non-blocking STDIN/STDOUT does not work on Windows #17451

@denandz

Description

@denandz

I did this

curl.exe -T . -N https://pipeto.me/oincqoinlqher
Warning: fcntl failed on fd=0: No such file or directory
^C

Same issue with other protocols using -T .. Curl will write any input that comes in via STDIN out to the server, but will not print any server responses to STDOUT until the very end when curl.exe receives a ctrl-c.

I expected the following

Expected non-blocking IO, allowing server read and write at the same time, as per Linux.

curl/libcurl version

curl.exe --version
curl 8.9.1 (Windows) libcurl/8.9.1 Schannel zlib/1.3 WinIDN
Release-Date: 2024-07-31
Protocols: dict file ftp ftps http https imap imaps ipfs ipns mqtt pop3 pop3s smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS HSTS HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM SPNEGO SSL SSPI threadsafe Unicode UnixSockets

operating system

Windows 10/Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions