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

Non-Blocking Examples and Tests #26

Merged
merged 2 commits into from
Jan 14, 2023
Merged

Non-Blocking Examples and Tests #26

merged 2 commits into from
Jan 14, 2023

Conversation

deckerego
Copy link
Owner

  • Removed timeouts & waits to allow for nonblocking mode
  • Tests for socket connection OSErrors
  • Example for nonblocking mode
  • Associated unit tests

nightmechanic and others added 2 commits January 11, 2023 17:22
Adapted from the circuitpython webserver

Co-authored-by: Ran Katz <rkatz@apple.com>
@deckerego
Copy link
Owner Author

@nightmechanic - I merged in the changes you suggested as part of #25 without adding a "poll" mode, instead you can set the socket as "nonblocking" and do other work in the background. See the examples folder for how I tested things out on the ESP32-S2.

@deckerego deckerego merged commit 18f980c into main Jan 14, 2023
@deckerego deckerego deleted the nonblocking branch January 14, 2023 22:11
@deckerego
Copy link
Owner Author

@nightmechanic
Copy link
Contributor

Thanks a lot,
I imagined I didnt use the non-blocking mode properly (enabled it too late i think),

and sorry for not following up, been too busy with work etc.
Happy new year!

@wurls80 wurls80 mentioned this pull request Sep 17, 2023
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

2 participants