LithiumX icon indicating copy to clipboard operation
LithiumX copied to clipboard

FTP should allow more connections

Open GXTX opened this issue 2 years ago • 3 comments

Currently limited to 2 which means single transfers. With large small file transfers this makes things quite slow.

GXTX avatar Jan 07 '23 23:01 GXTX

Changed this to 5 and it just worked(tm), higher it likes to stall connections. Any reason you have it so low? https://github.com/Ryzee119/LithiumX/blob/master/src/lib/ftpd/ftp.h#L38

Edit: Nvm :P Weird stuff happening after ~6k files.

GXTX avatar Jan 08 '23 20:01 GXTX

You need to increase MEMP_NUM_NETBUF, MEMP_NUM_NETCONN variables I believe to match the max number of clients.

-DMEMP_NUM_NETBUF=6, -DMEMP_NUM_NETCONN=6 in CFLAGS for example, but it does still get confused sometimes. Not really sure why yet.

Ryzee119 avatar Jan 08 '23 22:01 Ryzee119