Skip to content

Fixed hanging by adding socket_timeout parameter with a default timeout of 10s #22

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

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

regulatre
Copy link
Contributor

Inevitably network connections will let us down and reads will fail. To prevent indefinite hanging in this situation we can now rely on a default read timeout of 10s. The default value can also be overridden by instantiating the class with the new value specified as socket_timeout. Credit to @mattura for the suggestion.

Copy link
Member

@ladyada ladyada left a comment

Choose a reason for hiding this comment

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

lgtm but best to have the author also take a 👁️

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.

Looks good to me too! Thank you!

@tannewt tannewt merged commit 888cdca into adafruit:main Aug 15, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Aug 16, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_CircuitPlayground to 5.2.7 from 5.2.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_CircuitPlayground#120 from dhalbert/no-pwmout-for-pulseout

Updating https://github.com/adafruit/Adafruit_CircuitPython_IRRemote to 4.1.8 from 4.1.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_IRRemote#54 from dhalbert/no-pwmout

Updating https://github.com/adafruit/Adafruit_CircuitPython_MAX31856 to 0.11.0 from 0.10.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_MAX31856#20 from eirinnm/selectable_mains_filtering

Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 6.2.6 from 6.2.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#123 from dhalbert/no-auto-brightness

Updating https://github.com/adafruit/Adafruit_CircuitPython_TFmini to 1.2.12 from 1.2.11:
  > Merge pull request adafruit/Adafruit_CircuitPython_TFmini#13 from okennedy/patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_NTP to 3.0.4 from 3.0.3:
  > Merge pull request adafruit/Adafruit_CircuitPython_NTP#22 from regulatre/main

Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 1.14.0 from 1.13.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#78 from colonwq/is_connected

Updating https://github.com/adafruit/Adafruit_CircuitPython_PYOA to 2.5.9 from 2.5.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_PYOA#36 from dhalbert/no-auto-brightness
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