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

chat: add a timeout to requests.post call #204

Merged
merged 1 commit into from
Aug 29, 2022
Merged

Conversation

wwade
Copy link
Owner

@wwade wwade commented Aug 29, 2022

The new pylint advises us that programs using requests.METHOD without a timeout can
hang forever, which seems surprising given that they're using TCP connections, but
even still, two hours is probably too long as well.

Added a timeout to "chatmail" with a default value of 10 seconds.

The new pylint advises us that programs using requests.METHOD without a timeout can
hang forever, which seems surprising given that they're using TCP connections, but
even still, two hours is probably too long as well.

Added a timeout to "chatmail" with a default value of 10 seconds.
@wwade wwade merged commit 11d875c into master Aug 29, 2022
@wwade wwade deleted the timeout-requests.post branch August 29, 2022 20:32
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.

None yet

1 participant