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

Use a variable to set the default request timeout #418

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

leouieda
Copy link
Member

@leouieda leouieda commented Jun 5, 2024

Using a variable in pooch.downloaders allows users to potentially increase it if they require and allows us to update it easily if required as well. Set it to 30s instead of 5s to allow for slow connections.

Relevant issues/PRs:

Fixes #409

Using a variable in `pooch.downloaders` allows users to potentially
increase it if they require and allows us to update it easily if
required as well.
@leouieda
Copy link
Member Author

leouieda commented Jun 5, 2024

@paddyroddy had a few minutes to spare so I made this. 30s should be more than enough since it only timeouts if there is no response at all in this time frame. But if it's a variable and you really need it you can set it to a larger value.

Will merge as soon as tests pass and then cut a bugfix release (probably tomorrow or Friday).

@leouieda leouieda merged commit 889f6e1 into main Jun 5, 2024
18 checks passed
@leouieda leouieda deleted the timeout branch June 5, 2024 19:45
@paddyroddy
Copy link

Thanks! I had done a similar variable, but was trying to work out a way of not hard coding it

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.

Increase timeout on HTTP requests and use a variable
2 participants