Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Remove warning for too many listeners on socket.io sockets #28

Merged
merged 1 commit into from
Nov 27, 2018

Conversation

jimpick
Copy link
Contributor

@jimpick jimpick commented Nov 27, 2018

It's fairly normal to have more than 10 listeners on a socket for the
rendezvous server.

This small change makes the test cases for peer-star-app much less chatty.

It's fairly normal to have more than 10 listeners on a socket for the
rendezvous server.
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For additional context; I spent some time going through this, the warning is coming from the disconnect listener on socket.io-pull-stream. Anytime a stream is created for a given socket that listener is added, so that when the socket ends it cleans up any open streams.

I think there is a possible even listener leak in socket.io-pull-stream, I'll create an issue there. It doesn't impact this change though.

The CI error is commitlint, I'll fix the commit message on squash and merge.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants