@Override protected void connectionFailed(SocketChannel channel, Throwable ex, Object attachment) { Timeout.Task connectTimeout = _connectingChannels.remove(channel); if (connectTimeout != null) connectTimeout.cancel(); if (attachment instanceof HttpDestination) ((HttpDestination)attachment).onConnectionFailed(ex); else super.connectionFailed(channel,ex,attachment); } }
@Override protected void connectionFailed(SocketChannel channel, Throwable ex, Object attachment) { if (!(attachment instanceof WebSocketClient.WebSocketFuture)) super.connectionFailed(channel, ex, attachment); else { __log.debug(ex); WebSocketClient.WebSocketFuture future = (WebSocketClient.WebSocketFuture)attachment; future.handshakeFailed(ex); } } }
@Override protected void connectionFailed(SocketChannel channel, Throwable ex, Object attachment) { if (!(attachment instanceof WebSocketClient.WebSocketFuture)) super.connectionFailed(channel, ex, attachment); else { __log.debug(ex); WebSocketClient.WebSocketFuture future = (WebSocketClient.WebSocketFuture)attachment; future.handshakeFailed(ex); } } }
@Override protected void connectionFailed(SocketChannel channel, Throwable ex, Object attachment) { if (!(attachment instanceof WebSocketClient.WebSocketFuture)) super.connectionFailed(channel, ex, attachment); else { __log.debug(ex); WebSocketClient.WebSocketFuture future = (WebSocketClient.WebSocketFuture)attachment; future.handshakeFailed(ex); } } }
connectionFailed(channel,e,att);
connectionFailed(channel,e,att);
connectionFailed(channel,e,att);