-
-
Notifications
You must be signed in to change notification settings - Fork 939
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 from multiple threads throws 'The session is not open' error #1493
Comments
You may want to subscribe to the Also doing the upload actually async instead of using If the server actually closes the connection (for whatever reason), you have to re-connect and try again. But note that the current release has a bug with re-connecting. see #1474 . You have to explicitly disconnect before re-connecting to work around it. |
It could also be #1253 which occasionally fails in CI (and for me, quite often locally). I did not find the root cause when I looked at it last |
@Rob-Hague for me locally it starts giving issues only when using 50 threads, but when running inside azure function, we see this issue for 2-3 parallel uploads too. Could you please maybe look into the root cause and maybe suggest a work around if possible? |
What SSH/SFTP software is the server running? Do you have access to server logs? |
This is SFTP server on Azure Storage. Unfortunately they do not have much connection server logs |
@Rob-Hague any updates on this? |
I left some notes in #1253 I did not get any further |
This is very similar to #369
I am using 2024.1.0 version of the library and connecting to an Azure Storage SFTP server. I am trying to upload 50 files in parallel using the same connection and it throws this exception
My code looks like this:
I tried the smilar scenario with the WINSCP library as well to rule out any issues with server and seems to be working fine there
The text was updated successfully, but these errors were encountered: