]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: fix slow write/upload performance on Windows
authorMarc Hoersken <info@marc-hoersken.de>
Tue, 15 Dec 2020 06:22:13 +0000 (07:22 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Wed, 21 Apr 2021 18:32:24 +0000 (20:32 +0200)
commitb36442b24305f3cda7c13cc64b46838995a4985b
treee0e64079d24b24b357dc472c1591e9887c2799f6
parente92998a3121ac0752d86fd90d9d6053af760048e
multi: fix slow write/upload performance on Windows

Reset FD_WRITE by sending zero bytes which is permissible
and will be treated by implementations as successful send.

Without this we won't be notified in case a socket is still
writable if we already received such a notification and did
not send any data afterwards on the socket. This would lead
to waiting forever on a writable socket being writable again.

Assisted-by: Tommy Odom
Reviewed-by: Jay Satiro
Reviewed-by: Marcel Raad
Tested-by: tmkk on github
Bug: #6146
Closes #6245
lib/multi.c