Skip to content

Socket:: bind() behaviour is inconsistent #2438

@tommikas

Description

@tommikas
  1. A UDPSocket type socket can bind to the same port repeatedly.
  2. Two UDPSocket type sockets cannot bind to the same port at the same time.
  3. A TCPServer type socket cannot bind to the same port repeatedly.
  4. Two TCPServer type sockets cannot bind to the same port at the same time.
  5. A TCPServer type socket and a UDPSocket type socket can bind to the same port at the same time. After that each socket behaves as described previously.

Mostly the last one seems like it could potentially cause issues.

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