Comments (5)
Which version are you using?
IF you are using the last release (jars) let me know pull the latest sources and build. Connections now use heartbeat and you should not see any timeouts.
from jredis.
We're using this version - 0d25186
from jredis.
That has a heartbeat of one second so I don't see how it can be a timeout of an idle client. I think the issue may be that you are (yes?) using the AsyncConnection directly. Before instantiating the connection, set connection spec to Reliable:
ConnectionSpec spec = DefaultConnectionSpec.newSpec();
// .. set your normal spec options, e.g. credentials, db, etc.
// specify reliable connection
spec.isReliable(true);
AsynchConnection async = new AsychConnection(spec, isSharedFlag);
Let me know how that works out and I'll close this. Also curious as to why you are using the connection directly.
from jredis.
We're using it like this:
ConnectionSpec connectionSpec = DefaultConnectionSpec.newSpec(host, port, 0, null);
redis = new JRedisAsynchClient(connectionSpec);
When would someone not want a reliable connection? Maybe that should be the default setting?
from jredis.
There are a variety of reasons why you may want to have explicit control over reconnect behavior but the client should have defaulted to reliable.
http://github.com/alphazero/jredis/commit/92973d6680c14dafc37b05493869150446a634c6
from jredis.
Related Issues (20)
- Expecting status code for size/count HOT 1
- Infinitive loop on reconnect (disconnect errors) HOT 3
- Connection re-established but last request not processed HOT 1
- java.util.concurrent.ExecutionException: Provider ExceptionBug? Expecting status code for size/count HOT 5
- add support for pub/sub
- full binary support HOT 11
- add support for hashes HOT 2
- add support for 2.2 (new unified request protocol) HOT 1
- invalid pom.xml configuration HOT 2
- pooling support & logging
- missing redis operations
- Build Failure HOT 2
- jreids ZINTERSTORE , ZUNIONSTORE wrong result HOT 2
- Occasional exception: org.jredis.connector.ConnectionReset: Connection re-established but last request not processed: in.read returned -1 HOT 10
- JRedis: specifying encoding for String opterations HOT 1
- can't call "sadd" sequentially HOT 1
- JRedisClient-tests error HOT 2
- Runtime Exception HOT 1
- ERR Protocol error: expected '$' got '*' on mset HOT 2
- Add support for time command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jredis.