Skip to content

Do not accept new connection after running for a while (+/- 1h) #32

Open
@raiviszel

Description

@raiviszel

App do not accept new connections after running for a while.
These connections which are already established - exchange with messages happens successfully, but after disconnect - it is not possible to connect anymore to server

this part is still alive:

public function run(): void
    {
        while (true) {
            echo count($this->allsockets)."|";
            $changed_sockets = $this->allsockets;
....

I have this issue with almost default example script: https://github.com/bloatless/php-websocket/blob/master/examples/server.php

Initially thought it is Raspberry Pi memory issue, but the same was tested with MacBook - and issue is the same.
After restart - works again +/- 1h (test was done with 5 messages per sec approx.)

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