Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 33ad8db8 authored by Gabriel Landais's avatar Gabriel Landais
Browse files

Details on connection failed

git-svn-id: https://scm.gforge.inria.fr/authscm/ycadoret/svn/gazelle/Maven/gazelle-proxy/trunk@35169 356b4b1a-1d2b-0410-8bf1-ffa24008f01e
parent dc957df5
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@ import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.sql.Timestamp;
import net.ihe.gazelle.proxy.netty.Proxy;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
......@@ -88,7 +90,12 @@ public abstract class ProxyHandler extends SimpleChannelUpstreamHandler {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
log.error("exceptionCaught", e.getCause());
String info = "Error handled by Netty";
if (this instanceof ProxyHandlerProvider) {
Proxy proxy = ((ProxyHandlerProvider) this).proxy;
info = info + " for proxy " + proxy.getInfo();
}
log.error(info, e.getCause());
ProxyTools.closeOnFlush(e.getChannel());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment