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

HTTPServer stops working on CircuitPython version >= 9.0 #92

Closed
gmos opened this issue Mar 28, 2024 · 3 comments
Closed

HTTPServer stops working on CircuitPython version >= 9.0 #92

gmos opened this issue Mar 28, 2024 · 3 comments

Comments

@gmos
Copy link

gmos commented Mar 28, 2024

HTTPServer stops working on CircuitPython version >= 9.0

Around line 207 in server.py it is assumed that sock.setsockopt(socket_source.SOL_SOCKET, socket_source.SO_REUSEADDR, 1) would work as of CircuitPython version 9.0. Unfortunately it doesn't and raises an OSError: [Errno 95] EOPNOTSUPP.

Perhaps better in the circuitpython implementations to just try to set SO_REUSEADDR and catch + ignore the error.

@dhalbert
Copy link
Contributor

Which board? This is fixed in 9.0.1 for Pico W.

@michalpokusa
Copy link
Contributor

Duplicate of #90?

@gmos
Copy link
Author

gmos commented Mar 29, 2024

Indeed a duplicate of #90 .
And it was on 9.0.0 I'll upgrade to 9.0.1 and retry.

@gmos gmos closed this as completed Mar 29, 2024
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

No branches or pull requests

3 participants