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 ssl.SSLSocket bind() error checking #8962

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Feb 20, 2024

Non-ssl sockets now return size_t error numbers, not bool.

Fixes #8947

@anecdata or @michalpokusa please test this.

Non-ssl sockets now return size_t error numbers, not bool.

Fixes micropython#8947
@tannewt tannewt added this to the 9.0.0 milestone Feb 20, 2024
@tannewt tannewt requested a review from jepler February 20, 2024 23:57
Copy link
Member

@anecdata anecdata left a comment

Choose a reason for hiding this comment

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

Yes, that fixes ESP32-S3 HTTPS server.

Pico W and ESP32-S2 are back to the MemoryError, should probably open a separate issue for that. When it happens on ESP32-S2 (QT Py; N4R2), gc.mem_free() is 2001968 and espidf.heap_caps_get_largest_free_block() is 1933312.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

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

Thanks!

@dhalbert dhalbert merged commit 5f76281 into adafruit:main Feb 21, 2024
187 checks passed
@tannewt
Copy link
Member Author

tannewt commented Feb 21, 2024

When it happens on ESP32-S2 (QT Py; N4R2), gc.mem_free() is 2001968 and espidf.heap_caps_get_largest_free_block() is 1933312.

Neither of these metrics capture the internal memory free. SSL only uses internal memory so secrets aren't on external memory.

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.

Error: Failure to bind on ESP when using HTTPS with adafruit_httpserver
3 participants