Skip to content

Warning: stream_select(): unable to select #448

Description

@krajcikondra

Hi,

I had working chat in my web applicatin 2 months ago but something happend and now is my chat broken. I don`t know why.

When I run my websocket server

php bin/console gos:websocket:server

then websocket server running without error. When I connect via javascript client to websocket server evertything looks fine

[2021-10-18T13:25:28.876644+02:00] websocket.DEBUG: INSERT CLIENT 1229 {"token":{"Lexik\\Bundle\\JWTAuthenticationBundle\\Security\\Authentication\\Token\\JWTUserToken":"JWTUserToken(user=\"test@test.cz\", authenticated=true, roles=\"\")"},"username":"test@test.cz"} [] [2021-10-18T13:25:28.876702+02:00] websocket.INFO: test@test.cz connected {"connection_id":1229,"session_id":"1627219109616d59a8d5b60593063675","storage_id":"1229"} []

In log folder is no error but in Chrome -> network are no messages in websocket connection. I have ChatTopic.php and tried debug onSubscribe function but it is not called.

Some idea how debug why onSubscribe function is not called? I have version 3.7.2 of gos/web-socket-bundle

Edit: When I stop websocket server I get following warning:

php.DEBUG: Warning: stream_select(): unable to select [4]: Interrupted system call (max_fd=11) {"exception":{"Symfony\\Component\\ErrorHandler\\Exception\\SilencedErrorContext":{"severity":2,"file":"/var/www/html/vendor/react/event-loop/src/StreamSelectLoop.php","line":290,"trace":[{"file":"/var/www/html/vendor/react/event-loop/src/StreamSelectLoop.php","line":231,"function":"streamSelect","class":"React\\EventLoop\\StreamSelectLoop","type":"->"}],"count":1}}} []

Activity

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

      Issue actions