Skip to content

There is a race condittion in the tcpServer #3

@Mastergamer433

Description

@Mastergamer433

In ShiraNet::Servers::TcpServer::getClient you've got a race condition. Or rather there i risk for one.

Since clients is modified concurrently in:

  • getConnection
  • removeClient
  • sendToAll

One could solve this using a mutex there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions