INT-1369 Improve Asynchrony of NIO Connections

This commit is contained in:
Gary Russell
2010-08-23 23:18:21 +00:00
parent 4090905770
commit 8571a12e20

View File

@@ -164,6 +164,7 @@ public class TcpNioConnection extends AbstractTcpConnection {
this.executionControl.incrementAndGet();
this.taskExecutor.execute(this);
}
this.executionControl.decrementAndGet();
if (message != null) {
sendToChannel(message);
}
@@ -172,7 +173,6 @@ public class TcpNioConnection extends AbstractTcpConnection {
logger.error("Unexpected exception, exiting...", e);
return;
}
this.executionControl.decrementAndGet();
} finally {
logger.trace("Nio message assembler exiting...");
// Final check in case new data came in and the