sys-ftpd icon indicating copy to clipboard operation
sys-ftpd copied to clipboard

Constant Crashing of the FTP demon

Open impeeza opened this issue 1 year ago • 9 comments

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?

impeeza avatar Nov 18 '24 01:11 impeeza

https://github.com/cathery/sys-ftpd/pull/29#issuecomment-2535523495

ITotalJustice avatar Dec 11 '24 10:12 ITotalJustice

Sysdvr Sysbase
sys ftp

it keeps "crashing" as I try to download the screenshots.
I am getting "can't open data connection" errors.

ELY3M avatar Apr 05 '25 08:04 ELY3M

I think i fixed it by copying jakibaki's sock buffer numbers......

ELY3M avatar Apr 05 '25 10:04 ELY3M

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

impeeza avatar Apr 05 '25 17:04 impeeza

in ftp.c

#define XFER_BUFFERSIZE 16384 #define SOCK_BUFFERSIZE 16384 #define FILE_BUFFERSIZE 32768 #define CMD_BUFFERSIZE 4096

ELY3M avatar Apr 06 '25 01:04 ELY3M

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

ELY3M avatar Apr 06 '25 01:04 ELY3M

see my fork on my github

ELY3M avatar Apr 06 '25 01:04 ELY3M

Thanks mate.

impeeza avatar Apr 06 '25 03:04 impeeza

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.

impeeza avatar Apr 07 '25 01:04 impeeza