Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compression issue #307

Open
e9hack opened this issue May 24, 2024 · 0 comments
Open

compression issue #307

e9hack opened this issue May 24, 2024 · 0 comments

Comments

@e9hack
Copy link

e9hack commented May 24, 2024

If dropbear is executed with option -W xxxx and xxxx is lager than 32768, coping of large files via WinSCP and compression enabled does fail. WinSCP shows the following error message:

Copying file 'D:\Download\carambola\openwrt-ath79-generic-tplink_archer-c7-v2-2-squashfs-sysupgrade-d240224.bin' fatally failed.
Copying files to remote side failed.

Syslog has the following message:
Sat Feb 24 05:02:01 2024 authpriv.info dropbear[5311]: Exit (root) from <192.168.103.2:47725>: Bad packet size 34091

The issue can be fixed by increasing RECV_MAX_PAYLOAD_LEN:

--- src/default_options.h	2024-04-25 16:30:00.000000000 +0200
+++ src/default_options.h	2024-05-24 11:37:25.103361566 +0200
@@ -341,7 +341,7 @@ group1 in Dropbear server too */
 #define DEFAULT_RECV_WINDOW 24576
 /* Maximum size of a received SSH data packet - this _MUST_ be >= 32768
    in order to interoperate with other implementations */
-#define RECV_MAX_PAYLOAD_LEN 32768
+#define RECV_MAX_PAYLOAD_LEN 49152
 /* Maximum size of a transmitted data packet - this can be any value,
    though increasing it may not make a significant difference. */
 #define TRANS_MAX_PAYLOAD_LEN 16384

Regards,
Hartmut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants