protected static boolean deRegisterWrite(WriteTimeoutFilter filter, boolean fail, IOException iox) { boolean result = writers.remove(filter); if (result) { if (fail) { String message = "Forced write timeout for:"+filter.getNext().getRemoteAddress(); LOG.warn(message); Socket sock = filter.getSocket(); if (sock==null) { LOG.error("Destination socket is null, unable to close socket.("+message+")"); } else { try { sock.close(); }catch (IOException ignore) { } } } } return result; }
protected static boolean deRegisterWrite(WriteTimeoutFilter filter, boolean fail, IOException iox) { boolean result = writers.remove(filter); if (result) { if (fail) { String message = "Forced write timeout for:"+filter.getNext().getRemoteAddress(); LOG.warn(message); Socket sock = filter.getSocket(); if (sock==null) { LOG.error("Destination socket is null, unable to close socket.("+message+")"); } else { try { sock.close(); }catch (IOException ignore) { } } } } return result; }
protected static boolean deRegisterWrite(WriteTimeoutFilter filter, boolean fail, IOException iox) { boolean result = writers.remove(filter); if (result) { if (fail) { String message = "Forced write timeout for:"+filter.getNext().getRemoteAddress(); LOG.warn(message); Socket sock = filter.getSocket(); if (sock==null) { LOG.error("Destination socket is null, unable to close socket.("+message+")"); } else { try { sock.close(); }catch (IOException ignore) { } } } } return result; }
protected static boolean deRegisterWrite(WriteTimeoutFilter filter, boolean fail, IOException iox) { boolean result = writers.remove(filter); if (result) { if (fail) { String message = "Forced write timeout for:"+filter.getNext().getRemoteAddress(); LOG.warn(message); Socket sock = filter.getSocket(); if (sock==null) { LOG.error("Destination socket is null, unable to close socket.("+message+")"); } else { try { sock.close(); }catch (IOException ignore) { } } } } return result; }
protected static boolean deRegisterWrite(WriteTimeoutFilter filter, boolean fail, IOException iox) { boolean result = writers.remove(filter); if (result) { if (fail) { String message = "Forced write timeout for:"+filter.getNext().getRemoteAddress(); LOG.warn(message); Socket sock = filter.getSocket(); if (sock==null) { LOG.error("Destination socket is null, unable to close socket.("+message+")"); } else { try { sock.close(); }catch (IOException ignore) { } } } } return result; }