Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add the node back to connected during reconnect. Issue 225.

The connection was being added back a bit later than its
reconnect, causing operations to continue to timeout.  It's
not clear if this is platform specific or not, but this change
is reported to work.

See http://code.google.com/p/spymemcached/issues/detail?id=225

Change-Id: I47960883b515a1d2b571e5b286179337dd960b2e
Reviewed-on: http://review.couchbase.org/19847
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
commit 52c767d5d8dd0d4df39cea5ff05580f7d07c753a 1 parent 4b27226
@ingenthr ingenthr authored ingenthr committed
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/main/java/net/spy/memcached/MemcachedConnection.java
View
2  src/main/java/net/spy/memcached/MemcachedConnection.java
@@ -591,6 +591,8 @@ private void attemptReconnects() throws IOException {
ch.configureBlocking(false);
int ops = 0;
if (ch.connect(qa.getSocketAddress())) {
+ connected(qa);
+ addedQueue.offer(qa);
getLogger().info("Immediately reconnected to %s", qa);
assert ch.isConnected();
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.