Fixed a bug where WriteCompletionEvent is not fired for HttpTunnelingClientSocketChannel

This commit is contained in:
Trustin Lee 2009-07-15 03:13:49 +00:00
parent cf57e4c42b
commit 7b61bdc08f

View File

@ -257,6 +257,9 @@ class HttpTunnelingClientSocketChannel extends AbstractChannel
public void operationComplete(ChannelFuture f) {
if (f.isSuccess()) {
future.setSuccess();
if (size != 0) {
fireWriteComplete(HttpTunnelingClientSocketChannel.this, size);
}
} else {
future.setFailure(f.getCause());
}