-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error: Failure to bind
on ESP when using HTTPS with adafruit_httpserver
#8947
Comments
This code looks about the same as https://github.com/ide/circuitpython-https-server which I used (with modifications, see ide/circuitpython-https-server#2) when testing #8932 #8954 will not further increase compatibility with anything that uses socketpool sockets. |
could be something wasn't quite right in #8940. Can you test with these two specific uf2 files: https://adafruit-circuit-python.s3.amazonaws.com/bin/adafruit_matrixportal_s3/en_US/adafruit-circuitpython-adafruit_matrixportal_s3-en_US-20240217-main-PR8808-d0fec0c.uf2 and https://adafruit-circuit-python.s3.amazonaws.com/bin/adafruit_matrixportal_s3/en_US/adafruit-circuitpython-adafruit_matrixportal_s3-en_US-20240217-main-PR8940-6c1e34e.uf2 on the matrixportal? "PR8808" is from immediately before #8940 was merged, so if 8808 works and 8940 doesn't that helps narrow it down. |
I was just bisecting when you posted @jepler ...
|
@tannewt can you take a look? I didn't immediately spot how your change introduced this problem, maybe you'll see it though. |
hmm, should the library only be calling
when not CircuitPython?
But calling it always yields: |
Ah, thanks @michalpokusa that works, and it's back to |
Thanks for testing. I just realized in previous response I linked to this exact issue 😅, happens when you jump between multiple issues/PRs. Nevertheless the class sets reuse before wraping. |
( |
Yup. My brain went straight to "hey, I removed that error message". Looks like ssl socket is implicitly converting the new error number returned to a bool and then throwing the error message. Will fix today or tomorrow. It should be identical to the non-ssl socket change. |
Non-ssl sockets now return size_t error numbers, not bool. Fixes #8947
CircuitPython version
Code/REPL
Behavior
Description
No response
Additional information
While working on HTTPS support for
adafruit_httpserver
I noticed taht the latest version of CP changed something that seems to break code taht has been working until now regardingSSLSocket
s.It used to work between
e3c4b79e29ca691b972ccaad3576375e50ea08b1
and9.0.0-beta.1
, althought then I was gettingMemoryError
as described hereThis is probably related to:
#8268
#8932
The text was updated successfully, but these errors were encountered: