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-02-02 19:32:16 +01:00
2025-09-30 13:16:34 +02:00
2026-03-09 18:27:10 +01:00
2026-03-13 20:48:07 +01:00
2025-06-23 13:33:10 +02:00
2025-01-21 11:32:49 +01:00
2026-03-13 20:48:07 +01:00
2026-03-13 20:48:07 +01:00
2026-03-17 11:46:11 +01:00
2025-07-24 16:10:54 +02:00
2025-06-23 15:24:30 +02:00
2026-02-20 10:55:17 +01:00
2026-03-13 20:46:35 +01:00
2026-01-15 12:48:06 +01:00
2026-03-13 20:46:35 +01:00
2026-03-17 11:46:11 +01:00
2026-01-07 14:46:07 +01:00
2026-02-10 10:35:23 +01:00
2022-06-20 09:18:59 +02:00
2025-08-14 10:32:05 +02:00
2025-05-06 22:03:18 +02:00
2025-08-14 10:32:05 +02:00
2025-05-06 22:03:18 +02:00
2026-01-05 12:24:13 +01:00
2026-01-05 12:24:00 +01:00
2026-01-05 12:24:00 +01:00
2026-02-05 22:31:48 +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
2026-01-15 12:48:06 +01:00
2023-12-18 17:35:04 +01:00
2026-03-17 11:46:11 +01:00
2025-06-23 15:24:30 +02:00
2025-12-12 18:18:02 +01:00
2022-09-29 11:12:55 +02:00
2022-07-19 15:21:50 +02:00
2022-07-19 15:21:50 +02:00
2026-02-24 10:30:53 +01:00
2025-01-14 14:47:44 +01:00
2026-03-06 15:02:37 +01:00
2022-11-23 15:29:29 +01:00
2023-12-18 17:35:04 +01:00
2026-02-24 10:30:53 +01:00
2026-03-06 15:02:37 +01:00
2026-02-05 22:31:48 +01:00
2026-03-16 18:44:55 +01:00
2026-03-17 11:46:11 +01:00
2022-12-20 10:07:27 +01:00
2026-02-02 18:37:54 +01:00
2025-12-12 18:03:19 +01:00
2025-12-12 18:03:19 +01:00
2026-02-24 10:36:58 +01:00
2026-03-17 11:46:11 +01:00
2026-02-05 17:19:01 +01:00
2023-08-25 15:13:31 +02:00
2025-05-06 22:03:18 +02: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-03-17 11:46:11 +01:00
2025-11-25 17:57:42 +01:00
2026-01-15 12:23:42 +01:00
2026-01-15 12:48:06 +01:00
2026-01-15 12:48:06 +01:00
2026-03-17 11:46:11 +01:00
2026-01-05 12:24:13 +01:00
2025-12-12 18:03:19 +01:00
2026-01-05 12:24:13 +01:00
2025-08-06 11:16:58 +02:00
2025-12-12 18:03:19 +01:00
2026-03-16 19:04:57 +01:00
2025-12-12 18:03:19 +01:00
2025-06-23 15:24:30 +02:00
2026-02-05 17:19:01 +01:00
2026-01-05 12:21:43 +01:00
2026-01-05 12:21:43 +01:00
2025-12-12 18:03:19 +01:00
2026-02-05 17:19:01 +01:00
2026-03-17 11:46:11 +01:00
2026-02-05 22:31:48 +01:00
2026-01-05 12:24:13 +01:00
2026-03-17 11:46:11 +01:00
2025-01-13 15:47:43 +01:00
2026-02-05 17:19:01 +01:00
2026-02-05 17:19:00 +01:00
2026-03-17 12:01:15 +01:00
2025-12-12 18:03:19 +01:00
2025-11-09 05:52:45 +05:30
2026-03-06 15:02:37 +01:00
2026-03-17 11:46:11 +01:00
2025-12-12 18:03:19 +01:00
2026-03-17 11:46:11 +01:00
2025-12-12 18:03:19 +01:00
2025-11-04 14:46:58 +01:00
2026-01-15 12:48:06 +01:00