We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When following code was running, redisClient meet a EOFException and program hang on.
RedisServer redis = RedisServer.newRedisServer(6379); redis.start(); try { RedisClient redisClient = RedisClient.create("redis://passwd@127.0.0.1:6379/0"); try (StatefulRedisConnection<String, String> connection = redisClient.connect()) { RedisCommands<String, String> syncCommands = connection.sync(); syncCommands.set("key", "Hello World!"); System.out.printf("%s\n", syncCommands.get("key")); //syncCommands.quit(); } redisClient.shutdown(); } finally { redis.stop(); }
Please add socket close check to RedisClient's run() procedure from
while (running.get()) { Optional<RedisCommand> command = nextCommand(); ...
to
while (running.get()) { if (socket.isClosed()){ close(); //resources release here. }else{ Optional<RedisCommand> command = nextCommand(); ...
The text was updated successfully, but these errors were encountered:
fix #135
680ec79
fix #135 (#136)
9b40edc
Hi @kentyeh , thanks for your proposal, expect the fix in the next release
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When following code was running, redisClient meet a EOFException and program hang on.
Please add socket close check to RedisClient's run() procedure
from
to
The text was updated successfully, but these errors were encountered: