Skip to content

Repeated open and close socket for UDP fails: OSError: Could not start server #214

@larry5b6

Description

@larry5b6

The issue came up when trying to send a UDP message to several destinations, but the simplified example attached demonstrates the issue with only one destination. Multiple connect - send - close cycles eventually cause a 'Could not start server' error. Environment is a pyportal running 9.1.4.
udpIssue.zip

Edit by @dhalbert: firmware was v1.2.2

Activity

anecdata

anecdata commented on Oct 17, 2024

@anecdata
Member

Does the exception occur in a repeatable way, like after a certain number of iterations or a certain amount of time? I don't see this behavior in my own clients.

I noticed that the version of NINA firmware is old, you could try the latest.

If you catch the exception and retry, does it recover?

larry5b6

larry5b6 commented on Oct 17, 2024

@larry5b6
Author
anecdata

anecdata commented on Oct 18, 2024

@anecdata
Member

Hopefully you can get the NINA firmware updated and see if that improves things. I'm afk with just phone now, but I can do some testing next week when I'm back if the issue persists.

larry5b6

larry5b6 commented on Oct 18, 2024

@larry5b6
Author

Issue resolved by upgrading ESP32 firmware to 1.7.7. Case closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @anecdata@larry5b6

        Issue actions

          Repeated open and close socket for UDP fails: OSError: Could not start server · Issue #214 · adafruit/Adafruit_CircuitPython_ESP32SPI