curl-curl/lib/vssh
Stefan Eissing 0a79a599a9
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
2025-10-23 13:01:35 +02:00
..
curl_path.c curl_path: add curlx_dyn_free() on an error path 2025-10-22 09:37:54 +02:00
curl_path.h lib: include files using known path 2025-04-08 17:00:00 +02:00
libssh2.c transfer: fix retry for empty downloads on reuse 2025-10-23 13:01:35 +02:00
libssh.c libssh: return the proper error for readdir problems 2025-10-19 14:28:55 +02:00
ssh.h libssh2: clarify that sshp->path is always at least one byte 2025-10-06 13:57:19 +02:00