Fix for NETTY-183 Client-side HTTP tunneling transport logs and swallows an exceptionCaught event.
* HttpTunnelingClientSocketChannel.ServletChannelHandler does not log the caught exception anymore. The exception is propagated to the HttpTunnelingClientSocketChannel's pipeline. * More comprehensive log message on the server side
This commit is contained in:
parent
8dd55b0368
commit
3a2350158d
@ -134,7 +134,7 @@ class HttpTunnelingChannelHandler extends SimpleChannelUpstreamHandler {
|
||||
|
||||
@Override
|
||||
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
|
||||
logger.warn("Unexpected exception", e.getCause());
|
||||
logger.warn("Unexpected exception while HTTP tunneling", e.getCause());
|
||||
invalidateHttpSession();
|
||||
e.getChannel().close();
|
||||
}
|
||||
|
@ -278,7 +278,9 @@ class HttpTunnelingClientSocketChannel extends AbstractChannel
|
||||
|
||||
@Override
|
||||
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
|
||||
logger.warn("Unexpected exception", e.getCause());
|
||||
fireExceptionCaught(
|
||||
HttpTunnelingClientSocketChannel.this,
|
||||
e.getCause());
|
||||
channel.close();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user