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

Fix default socket timeout #4095

Merged
merged 1 commit into from
Feb 1, 2021
Merged

Fix default socket timeout #4095

merged 1 commit into from
Feb 1, 2021

Conversation

hierophect
Copy link
Collaborator

@hierophect hierophect commented Jan 29, 2021

PR #3854 accidentally set the default timeout of the Socket module to 0, which does not match Cpython's default of None (as in, never time out). This was causing some user programs to throw unexpected EAGAIN errors. Additionally, when Socket was placed in non-blocking mode (with a timeout of 0), even successful calls from some functions would result in ETIMEDOUT. This PR fixes both issues.

@hierophect hierophect added network espressif applies to multiple Espressif chips labels Jan 29, 2021
@hierophect hierophect requested a review from tannewt January 29, 2021 21:47
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@tannewt tannewt merged commit a52395a into adafruit:main Feb 1, 2021
@hierophect hierophect deleted the socket-timeout branch February 1, 2021 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
espressif applies to multiple Espressif chips network
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants