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 #148 loop method blocking with timeout of 0 #184

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

rjauquet
Copy link
Contributor

@rjauquet rjauquet commented Nov 8, 2023

Hi folks -- I've run into this issue on the Feather RP2040: #148

Not too sure if this is the proper fix for everyone, but this unblocked our team so I thought I'd share a PR. Happy to fix anything up if this isn't quite right.

@rjauquet rjauquet force-pushed the rej-fix-loop-blocking branch 4 times, most recently from 284ea42 to 0b26b26 Compare November 8, 2023 23:29
@FoamyGuy
Copy link
Contributor

FoamyGuy commented Jan 4, 2024

@rjauquet it seems the new version of the test loop script did not pass: https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT/actions/runs/6805249363/job/18504384141#step:2:956

Can you check into that and see what will be required to get it to pass?

@rjauquet
Copy link
Contributor Author

Yeah I will have a look today!

@rjauquet
Copy link
Contributor Author

I believe the constraint just needed to be loosened now that the timeout is passed through -- the fake method will only be called once as it has the same timeout as the original call instead of always having a timeout of 1 second.

@Kheirlb
Copy link

Kheirlb commented Jan 26, 2024

I would approve this if I could. Another friendly ping for the maintainers to take a look.

@brentru brentru self-requested a review January 29, 2024 15:00
@brentru brentru merged commit 1bf2c0e into adafruit:main Jan 29, 2024
1 check passed
@brentru
Copy link
Member

brentru commented Jan 29, 2024

@rjauquet Thank you for this PR. It has been reviewed,approved and merged. A release will follow shortly :)

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 30, 2024
Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 5.0.6 from 5.0.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#125 from FoamyGuy/recv_timeout

Updating https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer to 4.5.1 from 4.5.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#76 from michalpokusa/routes-refactor

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 7.5.8 from 7.5.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#199 from vladak/loop_vs_keep_alive
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#200 from vladak/loop_timeout_vs_socket_timeout
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#184 from rjauquet/rej-fix-loop-blocking

Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 1.0.0 from 0.8.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#61 from Gebhartj/Gebhartj-patch-1

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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.

4 participants