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

Slow upload. #148

Open
MartinX3 opened this issue Jun 19, 2022 · 3 comments
Open

Slow upload. #148

MartinX3 opened this issue Jun 19, 2022 · 3 comments

Comments

@MartinX3
Copy link

MartinX3 commented Jun 19, 2022

My upload is 0.5MB/s regardless of the server.
Even to a local computer via (w)lan.

But my internet speed test tells me 45 mb/s upload (and 100mb/s download)

I sadly don't know how to debug it.

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Jun 23, 2022

One problem I had while performing tests with a local server is that FTP transfers happened too fast, so I went to gFTP menu -> Preferences -> Network -> Max KB/S and set a value higher than 0.00, that effectively sets a speed limit, you might also want to change Transfer block size and see what happens...

Other than that, SFTP transfers are always somewhat slow, when I upload files to sourceforge I see my upload speed is 100 kb/s, with firefox I don't see my upload speed but transfers happen like 5x-10x faster, so there's something going on that needs fixing

One protocol that is slow by design is FSP (Flaky Stream Protocol), I think I'll just remove my FSP repos (forks) and remove FSP support from gFTP again, I have other things to do

@MartinX3
Copy link
Author

MartinX3 commented Jun 23, 2022

I tried sftp in filezilla.

gFTP -> 700kb/s
filezilla -> 5mb/s

my max upload is 40mbit/s so the 5mb/s are my max upload speed and filezilla has not this bug.

The max transfer speed didn't change it.

I sadly can't see what transfer block size filezilla uses.
Probably some hardcoded value in the code or maybe it communicates with the server to get the right size.

And I can't remember if gFTP was fast in the past. I thought until today I had some network issues on my computer.

@wdlkmpx
Copy link
Collaborator

wdlkmpx commented Jun 30, 2022

SFTP support is stuck in the past, it's not directly supported. gftp execs ssh and then performs operations to display stuff in the interface,

That's why it works even when SSL is disabled (this is good and bad at the same time), I think it's quite possible to implement a native SSH support now that SSL stuff apparently works fine with as many connections as needed

The SSL layer is not supported in SFTP mode, but the answer is in the FTP implementation, some code examples. I'm not sure what is exactly slowing down SSH transfers but I'll take a closer look to see if something is obviously wrong

So overall, some stuff can happen but requires a certain level of expertise since we're not using an external lib like lib libcurl, but developing the whole thing (this is good and bad at the same time)

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

No branches or pull requests

2 participants