Ryzee119 / LithiumX

A simple dashboard, mainly developed for the Original Xbox console, but it can be compiled for Windows and Linux for rapid development and testing.
MIT License
72 stars 8 forks source link

FTP should allow more connections #13

Open GXTX opened 1 year ago

GXTX commented 1 year ago

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

GXTX commented 1 year ago

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.

Ryzee119 commented 1 year ago

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.