Skip to content

socket.disconnect doesn't close underlying connetions [0.5.1] #200

@fatihsokmen

Description

@fatihsokmen

calling disconnect doesn't close socket.io client connections.

steps:
1 - on server side, I calling following command to list how many open file by nodes (before client connection)

lsof -i -n -P | grep nodejs | wc -l
1

2 - connecting socket.io server from client

lsof -i -n -P | grep nodejs | wc -l
5

3 - Calling disconnect on client sdks

lsof -i -n -P | grep nodejs | wc -l
4

4 - Reconnect server

lsof -i -n -P | grep nodejs | wc -l
6

5 - Calling disconnect on client sdks

lsof -i -n -P | grep nodejs | wc -l
4

6 - Reconnect server

lsof -i -n -P | grep nodejs | wc -l
6

5 - Calling disconnect on client sdks

lsof -i -n -P | grep nodejs | wc -l
5

6 - Reconnect server

lsof -i -n -P | grep nodejs | wc -l
6

5 - Calling disconnect on client sdks

lsof -i -n -P | grep nodejs | wc -l
5

Iterating reconnect-disconnect again, I get 6 and 5 accordingly. Connections leave open till process is terminated manually.

Any idea ?

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