Constant Crashing of the FTP demon
Hi, thanks Cathery for your great work
I am using currently Firmware 19.0.1, Atmosphère 1.8.0, Hekate 6.22.
I had only loaded the Modules:
- Sys-FTP
- PNGShot
- SYS-Tweak
- Emuiibo
Every time I connect to console using FTP I only can change folder so few times (3 to 6) before the ftp server stops answering, then retrying 6 seconds after the connection can be recreated, My client tell me the connection has lost and restart another one.
Even I unloaded all SYSMODULES, but SYS-FTP and SYS-Patch but that didn't solve the problem
Can any log on the server can be enabled to try to catch the crash?
https://github.com/cathery/sys-ftpd/pull/29#issuecomment-2535523495
Sysdvr
Sysbase
sys ftp
it keeps "crashing" as I try to download the screenshots.
I am getting "can't open data connection" errors.
I think i fixed it by copying jakibaki's sock buffer numbers......
I think i fixed it by copying jakibaki's sock buffer numbers......
copying the sock buffer numbers, where? in the code? and sorry for ask, what are jakibaki's sock buffer numbers? :D
in ftp.c
#define XFER_BUFFERSIZE 16384 #define SOCK_BUFFERSIZE 16384 #define FILE_BUFFERSIZE 32768 #define CMD_BUFFERSIZE 4096
in main.c
.tcp_tx_buf_size = 8 * SOCK_BUFFERSIZE,
.tcp_rx_buf_size = 8 * SOCK_BUFFERSIZE,
.tcp_tx_buf_max_size = 16 * SOCK_BUFFERSIZE,
.tcp_rx_buf_max_size = 16 * SOCK_BUFFERSIZE,
.udp_tx_buf_size = 0x2400,
.udp_rx_buf_size = 0xA500,
.sb_efficiency = 8,
you need #define SOCK_BUFFERSIZE 16384 on top of main.c
see my fork on my github
Thanks mate.
Downloaded your fork, and works perfect, I could browse all my SD Cards with all the folders even with folders having 300+ files. no crash at all. Thanks mate.