-
Notifications
You must be signed in to change notification settings - Fork 146
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
Upload large file getting stuck #411
Comments
Hi @mironabr, Please see #54 that the original author of is/jsch#39 opened here. Thanks, |
We moved from the original jsch to this lib. It works. However, our QA team made performance tests and said that uploading file to SFTP server with the original lib is much faster. Do you know something about it ? |
My QA team did lot of tests with the original jsch lib and mwiede lib and they 100% confirmed that uploading large file (20MB and above), most of the times both libs are getting stuck but when I added the above fix (is/jsch#39) both libs worked and were not stuck. |
Hi @mironabr, I don't know immediately why your team would have found that this fork is slower than the older version of than this version, since you haven't provided any data that can be analyzed to help determine why. As for the upload issue, I'm not especially comfortable with merging the fix, since I was still able to trigger a deadlock even with it applied, and the original author of it has remained silent and never answered questions I posed to help better understand the proposed fix. Thanks, |
@mwiede What are your thoughts? Do you think we should simply merge the change from is/jsch#39 here? I'm not sure how much of a regression risk there would be for it, but if users are reporting it helps solve their problems, perhaps it's worth a gamble. |
Or perhaps we add some configuration setting that controls whether the additional |
Hi @norrisjeremy & @mwiede , About the upload getting stack, I don't know when did you check the mention fix suggestion (is/jsch#39) but we made lot of tests. mainly on the original lib. To fix the upload stack I had to add both fixes to the code: The second fix was already implemented in your lib. If you will add the first fix (with the flush) you will see it will solve the issue. More than that - our QA team reported that with the flush fix, the performance was improved Regards |
Hi @mironabr, Ok, thanks for confirming that the performance differences were simply due to differing crypto algorithms. I'll re-review the proposed change from is/jsch#39 to add an additional Thanks, |
@norrisjeremy that's sound good. however I don't see cases that this extra flush can cause any regression issue for anybody. Regards, |
@norrisjeremy any update ? |
This topic has it's own issue which is #59 |
@mironabr as you said, that the issue arises with files having 20MB or more, can you provide a failing unit test for this? I think that would proof that it is really a bug. |
…n to allow disabling in case it causes regressions.
@norrisjeremy Thanks a lot man! really appreciates it. |
I was using the original jsch lib and had the issue that uploading large file getting stack and I applied the following fix to the code and it solved the issue.
I want to move to your lib but you must apply this fix as well:
is/jsch#39
The text was updated successfully, but these errors were encountered: