Skip to content

esp32/modsocket: Fix getaddrinfo hints to set AI_CANONNAME. #16210

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

Conversation

dpgeorge
Copy link
Member

Summary

Because the ai_canonname field is subsequently used.

ESP32_GENERIC_S3 (at least) crashes with IDF 5.2.3 without this set.

See #15841, and prior attempt at a fix in #15999.

Testing

Tested with the network tests, ./run-tests.py -t a0 net_*/*.py.

  • Tested with ESP32_GENERIC_S3 with IDF 5.2.3. Tests crash the board prior to this fix, and pass after this fix (except, TLS seems to be broken in IDF 5.2.3.... that's a separate issue).
  • Tested with ESP32_GENERIC_S3 with IDF 5.2.2. Tests pass before and after this fix.

@dpgeorge dpgeorge requested a review from projectgus November 11, 2024 01:14
@dpgeorge dpgeorge added this to the release-1.24.1 milestone Nov 12, 2024
Copy link
Contributor

@projectgus projectgus left a comment

Choose a reason for hiding this comment

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

Ah, I hacked around this to test something on IDF V5.3 a while back, too!

But this is the correct fix :)

Because the `ai_canonname` field is subsequently used.

ESP32_GENERIC_S3 (at least) crashes with IDF 5.2.3 without this set.

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the esp32-modsocket-set-aicanonname branch from 5502edb to 611d8f9 Compare November 13, 2024 02:36
@dpgeorge dpgeorge merged commit 611d8f9 into micropython:master Nov 13, 2024
8 checks passed
@dpgeorge dpgeorge deleted the esp32-modsocket-set-aicanonname branch November 13, 2024 03:13
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