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:
parent
8f659833c6
commit
d1b40a3c8b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user