Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JCBC-230: Release Connection also on cancel()

This changeset properly releases the view connection also
on cancel(), not only on completed().

Change-Id: I6f2d5e83f4356db2e827b61098a94b4f7d9d6be0
Reviewed-on: http://review.couchbase.org/24343
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
  • Loading branch information...
commit 4b733eb37351aa62bab7c6d58d7f689f829ea704 1 parent 7134df1
@daschl daschl authored daschl committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/main/java/com/couchbase/client/http/RequestHandle.java
View
1  src/main/java/com/couchbase/client/http/RequestHandle.java
@@ -61,6 +61,7 @@ public void cancel() {
return;
}
this.completed = true;
+ this.connMgr.releaseConnection(this.conn);
synchronized (this) {
notifyAll();
}
Please sign in to comment.
Something went wrong with that request. Please try again.