Files
libssh/src
Colin Baumgarten 3154a4ab8d sftpserver: Fix client messages being ignored if sent at a high rate
When using OpenSSH scp to read files larger than a few hundred
kilobytes, downloads stall and never finish. A workaround is to
pass -Xnrequests=1 to scp, which will cause scp to only do a
single concurrent SFTP read request at a time.

The cause for the problem is that if SFTP client messages are
received at a high rate, sftp_channel_default_data_callback() will
potentially be called with multiple messages in the incoming data
buffer, but only the first message will be extracted and handled.

So add a loop to extract as many SFTP client messages as available
from the incoming data buffer.

Signed-off-by: Colin Baumgarten <colin.baumgarten@hubersuhner.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2026-03-17 12:01:15 +01:00
..
2026-02-10 10:35:23 +01:00
2026-01-15 12:48:06 +01:00
2026-02-10 10:35:23 +01:00
2026-01-05 12:24:00 +01:00
2026-01-05 12:24:00 +01:00
2026-01-05 12:24:13 +01:00
2026-01-15 12:48:06 +01:00
2026-01-15 12:48:06 +01:00
2023-12-18 17:35:04 +01:00
2025-12-12 18:18:02 +01:00
2022-11-23 15:29:29 +01:00
2026-01-05 12:24:13 +01:00
2026-01-05 12:24:13 +01:00
2026-01-05 12:24:13 +01:00
2026-01-06 22:56:44 +05:30
2026-01-15 12:48:06 +01:00
2026-01-15 12:48:06 +01:00
2026-01-05 12:24:13 +01:00
2025-12-12 18:03:19 +01:00
2026-02-05 17:19:01 +01:00
2025-12-12 18:03:19 +01:00
2025-12-12 18:03:19 +01:00
2026-01-15 12:48:06 +01:00