Elffuss BraidHub

kikocis/java-driver public

Release connections on ResultSetFuture#cancel (JAVA-407)
Changeset50f551d5ba37707a60457544e989eb2016e4e7bac5c623d9064d462a0120cb7f
AuthorSylvain Lebresne <sylvain@datastax.com> · 2014-08-05 09:00 +02:00
CommitterSylvain Lebresne <sylvain@datastax.com> · 2014-08-05 09:00 +02:00
Parentsb2250d69c45c

Browse the files at this changeset

2 files changed

modified driver-core/CHANGELOG.rst +6 −0
@@ -1,6 +1,12 @@
11 CHANGELOG
22 =========
33
4+2.0.5:
5+------
6+
7+- [bug] Release connections on ResultSetFuture#cancel (JAVA-407)
8+
9+
410 2.0.4:
511 ------
612
modified driver-core/src/main/java/com/datastax/driver/core/Connection.java +2 −0
@@ -754,6 +754,8 @@
754754 // were, a new request could reuse that ID but get the answer to the request we just gave up on instead
755755 // of its own answer, and we would have no way to detect that.
756756 connection.dispatcher.removeHandler(streamId, false);
757+ if (connection instanceof PooledConnection)
758+ ((PooledConnection)connection).release();
757759 }
758760
759761 private TimerTask onTimeoutTask() {