Skip to content

Add a default timeout to request #198

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

Closed
wants to merge 1 commit into from

Conversation

earonesty
Copy link

Requests lib can hang forever if a timeout is not specified.

#197

Requests lib can hang forever if a timeout is not specified.
@greg-db greg-db requested a review from rogebrd May 19, 2020 17:12
@greg-db
Copy link
Contributor

greg-db commented May 19, 2020

Thanks for putting this together to fix this! I'll ask the team to review.

@rogebrd
Copy link
Contributor

rogebrd commented May 26, 2020

Hello,

Review looks good to me for the most part, however, could you please fix the linting issues?

Specifically:
dropbox/oauth.py:38:24: E225 missing whitespace around operator
dropbox/oauth.py:133:101: E501 line too long (107 > 100 characters)

Could we also match the timeout with the default timeout on the main client?
https://github.com/dropbox/dropbox-sdk-python/blob/master/dropbox/dropbox.py#L131
Which would be 100 seconds rather than the 60s you have put in

@greg-db
Copy link
Contributor

greg-db commented Jul 15, 2020

This is done by #208.

@greg-db greg-db closed this Jul 15, 2020
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.

3 participants