Permalink
Browse files

Merge pull request #324 from adamhathcock/master

Connection failures cause connection pool to fill.
  • Loading branch information...
2 parents 4342cf0 + a29426d commit 3c9713db4463aafc12e6d441d10c477d93a8ba42 @purplefox purplefox committed Aug 21, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 vertx-core/src/main/java/org/vertx/java/core/http/impl/DefaultHttpClient.java
@@ -436,6 +436,11 @@ public void handle() {
}
private void failed(NioSocketChannel ch, final Throwable t) {
+ tcpHelper.runOnCorrectThread(ch, new Runnable() {
+ public void run() {
+ pool.connectionClosed();
+ }
+ });
if (t instanceof Exception && exceptionHandler != null) {
tcpHelper.runOnCorrectThread(ch, new Runnable() {
public void run() {

0 comments on commit 3c9713d

Please sign in to comment.