Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Using select to poll for a socket for incoming connections does not work #39

@dpgeorge

Description

@dpgeorge

One should be able to use select.select([s], [], []) (or the equivalent select.poll call) to wait for an incoming connection on the socket. But this doesn't work properly with esp32.

@nickzoic I saw that you implemented the socket_ioctl such that it used lwip_recvfrom to poll for read status, but uses select to poll for write/exception status. What was the reason? I think we should use select for read polling as well so to fix the issue with waiting for an incoming connection.

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