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

JRedisClient leaving connection open after calling quit #32

Closed
nreese opened this issue Sep 17, 2010 · 1 comment
Closed

JRedisClient leaving connection open after calling quit #32

nreese opened this issue Sep 17, 2010 · 1 comment

Comments

@nreese
Copy link

nreese commented Sep 17, 2010

I am running redis 1.2.6 and jredis 1.0.rc2

Start redis server, then monitor the open clients/connections by running redis-stat. Run the example code below. Notice how the client gets cleaned up but the connection remains open.

JRedisClient client = new JRedisClient(redisHost, redisPort);
byte[] resource = client.get(key);
client.quit();

@nreese
Copy link
Author

nreese commented Sep 17, 2010

After further research it looks like the connections are getting closed properly

redis-stat clients: connected clients
redis-stat connections: total number of connections received.

netstat -a | grep 6379 displays active connections
once quit has been called, the active connections are closed

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

1 participant