Skip to content

TCPServer.bind fails sometimes #2408

Closed
Closed
@kudangun

Description

@kudangun

I create a TCPServer and TCPSocket.
call server.open(), server.bind(port), server.listen(1) and server.accept().
Everything works OK. When i detect that the remote host closed its socket, i close() and delete my socket and then close() and delete the server. Then I start over - creating server and socket, open,bind etc.
Sometimes, after a few such iterations, server.bind(port) fails with status -3003.
This behavior is inconsistent. Sometimes it happens after 8 iterations, sometimes more. Sometimes not at all.
Using mbed os tag 0712b8a
K64F, GCC_ARM

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