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

Connection reset by peer issue for large downloads #26

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kcho
Copy link

@kcho kcho commented Jan 5, 2022

Current version of Yaxil.download uses requests.get to initiate connection to XNAT API. However, when downloading a large file from XNAT, it often raises ConnectionResetError(104, 'Connection reset by peer'). In order to solve this issue, requests.Session is used with keep_alive = True configuration. And this has solved the ConnectionResetError issues that we were having when downloading large files.

AMP-SCZ#1

@kcho
Copy link
Author

kcho commented Jan 13, 2022

@tokeefe Hi Tim, this is what we found in the U24 project. Please have a look at the changes, and let me know if this would be mergeable. Thanks!

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

Successfully merging this pull request may close these issues.

1 participant