Skip to content

no response to http requests on pico w /CP8 Beta #18

Closed
@domi-a

Description

@domi-a

tried circuitpython 8 beta 1/2/3 but the HTTPServer is not usable on pico w.

minimal examples like all three from this very lib: https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer/tree/main/examples
are not repsonding to simple browser or curl requests

ERR_CONNECTION_REFUSED (like about every 50. request does in fact get a response)

then i read this, and he is absolutly right: #14 (comment)
replacing the .mpy to source .py and changing L:334 to
self._sock.setblocking(True)
will make the HTTPServer respond every time

self._sock.setblocking(False) # non-blocking socket

not sure if this is related to this issue: #9 which does belong to this MR: bcabd1d which originally does change this very line to the opposite that makes the lib work for me and @justbuchanan.

sadly this is not a real solution, since it is now waiting/blocking to a incoming request and no other magic can happen while waiting :-(

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