Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedisStore leaks Pub/Sub channels (with test case) #1090

Closed
shapeshed opened this issue Nov 26, 2012 · 1 comment
Closed

RedisStore leaks Pub/Sub channels (with test case) #1090

shapeshed opened this issue Nov 26, 2012 · 1 comment

Comments

@shapeshed
Copy link
Contributor

I have created a simple test case to demonstrate that RedisStore is leaking pubsub channels when using xhr-polling on both a single and clustered processes. This uses the following versions.

  • Node 0.8.14
  • Socket.IO 0.9.11

The test starts a stripped down Socket.IO server and then another process connects 100 xhr-polling clients at a rate of 1 per second. The server logs Redis Pub/Sub data and the number of connected sockets.

Single Process

The single process uses this server. On a single process here are the results of the test showing leaking Pub/Sub channels.

xhr polling single process

I have created a patch for this. Here are the results of the test using the patch

xhr polling single process with patch

Clustered processes

The Clustered process test uses this server. Here is a graph of one of two processes showing leaking Pub/Sub channels and connections.

xhr polling clustered

Results with the patch show connections are removed ok but Pub/Sub channels still leak.

xhr polling clustered

@Cinamonas
Copy link

The patch did fix leaking pubsubs, thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants