Skip to content

HTTPServer stops working on CircuitPython version >= 9.0 #92

Closed
@gmos

Description

@gmos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions