Skip to content

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

Closed
tve wants to merge 3 commits into
micropython:esp32-idf41-cmakefrom
tve:esp32-fix-errno-3
Closed

tve wants to merge 3 commits into
micropython:esp32-idf41-cmakefrom
tve:esp32-fix-errno-3

Conversation

@tve

@tve tve commented Nov 12, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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