Change #246525
Category | curl |
Changed by | Stefan Eissing <stefan | @eissing.org>
Changed at | Thu 23 Oct 2025 13:01:35 |
Repository | https://github.com/curl/curl.git |
Project | curl |
Branch | master |
Revision | 0a79a599a9c09f7173e82eec23607742667a9944 |
Comments
transfer: fix retry for empty downloads on reuse When a reused connection did transfer 0 bytes, it assumed the transfer had failed and needed a retry. Add a check for data->red.done, so we can successfully accept the transfer of a 0-length file via SFTP. Add test case 1583 to verfiy. Fix SFTP disconnect debug trace when there was nothing to disconnect (like when reusing a connection). Fixes #19165 Reported-by: Alexander Blach Closes #19189
Changed files
- lib/transfer.c
- lib/vssh/libssh2.c
- tests/data/Makefile.am
- tests/data/test1583
- tests/data/test613
- tests/data/test614
- tests/libtest/test613.pl