NETTY-407 HttpTunnelingClientSocketChannel failed close() is not sent to

calling futures.

* HttpTunnelingClientSocketChannel.writeLastChunk should return a failed
future instead of raising an exception.
This commit is contained in:
Trustin Lee 2011-08-01 03:54:47 +09:00
parent 8f659833c6
commit d1b40a3c8b

View File

@ -254,7 +254,7 @@ class HttpTunnelingClientSocketChannel extends AbstractChannel
private ChannelFuture writeLastChunk() {
if (!requestHeaderWritten) {
throw new NotYetConnectedException();
return failedFuture(this, new NotYetConnectedException());
} else {
return realChannel.write(HttpChunk.LAST_CHUNK);
}