Skip to content

esp32: switch to esp-idf's errno.h to fix socket error codes #6613

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

Closed
wants to merge 3 commits into from

Conversation

tve
Copy link
Contributor

@tve tve commented Nov 12, 2020

This PR replaces #5968 and #6569, which attempted to patch-up the error codes.
This PR is based on the esp32-idf41-cmake branch and thus uses the cmake build system.
The main change brought about by this PR is to set MICROPY_USE_INTERNAL_ERRNO=0 to use the compiler's errno.h in xtensa-esp32-elf/sys-include/sys frmo the xtensa build tools.
It also removes the error code switcharoo in modsocket.c

@dpgeorge
Copy link
Member

Merged to master in 771376a and 902da05

Thank you!

@dpgeorge dpgeorge closed this Feb 15, 2021
tannewt added a commit to tannewt/circuitpython that referenced this pull request Jul 26, 2022
1. Run the socket select task at the same priority as CP. This is
  needed because it queues up the background work. Without it, CP
  needed to sleep to let the lower priority task go.
2. Close the active socket on disconnect. This prevents looping
  over a disconnected but not closed socket.

Fixes micropython#6610. Fixes micropython#6613
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants