-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
UploadBytes incorrectly reports failure after long delay when upload succeeded #1593
Comments
Interesting. I hadn't seen those commits. Not sure if' it's helpful, but looking back at the logs above, the "226 transfer complete" response isn't logged at all even though it says it uploaded. Almost as if it wasn't received/processed or the buffer wasn't flushed. |
I really need a new set of glasses. Please disregard my initial post, those commits were 50.0.0->50.0.1, so previous to your working version. Running your code right now against a ProFTPD server and it is working fine. Checking the 50.0.1+ commits now... |
Ok, I have checked and I would think that
is the culprit when going from 50.0.1 to 50.1.0 Since I cannot reproduce the problem here and we are looking at Android / Xamarin (Yikes!) there is now work for you to do (pretty please!). Compare the changes in First: Recode your mini-test-program to use SYNC. Does that change anything? Works? That's what I would do myself in order to bisect this problem further, but I can't do it. Only you can help here right now. |
Sure thing - I will take a detailed look at this in the next week or so. And yes Android/Xamarin (yikes) :) Updating to MAUI is in progress, but still have to support old app in the meantime. You may be right about .NET levels. The code in question is a separate FTPS "provider" plugin for a larger app and it does have unit testing, so it shouldn't be too difficult to put together a sync version and give it a thorough run through with the modifications you suggested. Appreciate your help, thanks! |
@kiddailey You will want to investigate the newest Nuget - V51.0.0 |
Just wanted to let you know that yes, v51 appears to have solved the issue on Android and success continues with v51.1.0. I will be testing shortly on iOS as well and will close this issue is successful. Thank you so much and apologies for the slow response - been a busy month. |
Confirmed, also works perfectly on iOS. Thanks again. |
FTP Server OS: Windows
FTP Server Type: Windows Server IIS
Client Computer OS: Android
FluentFTP Version: 50.1.0
Framework: Xamarin
After updating from 50.0.1 to 50.1.0, UploadBytes is oddly failing when the client attempts to upload an empty or small file (< 10 bytes). The upload starts, the file is uploaded completely and after a period of about 1-2 minutes, the upload call returns the upload as a failure even though it wasn't.
This issue does not occur in the previous version 50.0.1 where it works as expected.
Example code:
Logs :
There are no further log entries after the socket stream is disposed
For comparison, here is what the same thing looks like in 50.0.1 where it works correctly:
Notes:
The text was updated successfully, but these errors were encountered: