Repository navigation
ftp: fix I/O timeout after long uploads - #5596
Conversation
|
Thanks a lot for that work! Looking forward to v1.57! You know this is also affecting the download~~ |
|
I think curl should be used as much as possible (for FTP for example) because it is the fastest & most reliable library~ |
Whether we have it in 1.57 depends primarily on how long it will take to accept the upstream patch. You should see the 1.57 label as a preliminary possibility.
The upstream patch introduces deadline nudging in a few places though the investigation started from the upload case.
You know Moreover rclone uses custom TCP connections written in golang for features like bandwidth accounting / limiting or dead server elimination. By the way the latter feature is the cause of I/O timeout in the And finally, my opinion. In future I'd prefer to get rid of any ftp dependencies and parse protocol messages directly in the backend, I think it can generally simplify code but I don't want to overhaul and retest now. |
397dd3f to
1376e86
Compare
1376e86 to
8fdc9e4
Compare
|
(Noob-alert!) Does this mean:
In any case, thanks a ton! I was getting desperate over this issue. |
|
@CarlosHartmann |
8fdc9e4 to
cbab009
Compare
|
I should really do a thorough intro to git one day to understand all this. As I understand it now, you created an extra branch to have a beta version with fixed ftp right now. But it will take longer until it's part of the main branch? I'll get the beta right now and test it first thing tomorrow in any case! |
|
I just uploaded 20 files all between 12GB and 35GB without one single error. At least for me, this is working perfectly! Let me know if there's a way to tip you some money. But in any case, you have my deepest gratitude for fixing the issue! |
|
Glad it works for you :) |
cbab009 to
54d26d6
Compare
fd78f35 to
d679118
Compare
|
@ncw |
|
Note that previously this PR added a demonstration (negative) test which simulated the old buggy behavior, where backend didn't nudge control connection. |
|
@ncw |
|
The beta branch https://github.com/rclone/rclone/commits/iva-ftp |
108d2ce to
8779fc5
Compare
ncw
left a comment
There was a problem hiding this comment.
Looks great - thank you :-)
Let's merge for 1.57
8779fc5 to
5f429e7
Compare
|
Removing beta branch https://github.com/rclone/rclone/commits/iva-ftp @ncw |
|
go.mod change breaks |
Fixing The fork was planned to be a temporary soft fork until the maintainer addresses our submitted patches. I don't want to replace all package directives around the fork source now turning it into hard fork. We plan considering this only in 5-7 months if the upstream project continues to ignore our requests. For now you can use the below flow instead of I am sorry about inconvenience. |
|
Thanks for the explanation, workaround works for me. |
What is the purpose of this change?
Uploading of large files via rclone frequently ends up with
i/o timeout.The investigation has revealed the following reasons:
This patch makes
rclone ftp clientnudge the control connection right after a (probably long) upload has finished.Depends on the upstream PR jlaffaye/ftp#231 which will provide new
DialWithShutTimeoutoption and nudge control connections accordingly.Please note that the fs/fshttp commit is not strictly required. I just wanted to make the code look a little bit cleaner on my eyes... 👀
The temporary DON'T MERGE commit will be removed after jlaffaye/ftp#231 gets merged. It just allows to verify changes in advance...
Was the change discussed in an issue or in the forum before?
Derivative manifestations of this problem were reported many times on rclone forum and tracker:
Checklist