log.warn("peer closed connection, trying to re-establish connection and re-send msg");
log.warn("peer closed connection, trying to re-send msg");
       private void _send(byte[] data, int offset, int length) {           synchronized(send_mutex) {               try {                   doSend(data, offset, length);                   updateLastAccessed();               }               catch(IOException io_ex) {                   if(log.isWarnEnabled())                       log.warn("peer closed connection, trying to re-establish connection and re-send msg");                   try {                       doSend(data, offset, length);                       updateLastAccessed();                   }                   catch(IOException io_ex2) {                        if(log.isErrorEnabled()) log.error("2nd attempt to send data failed too");                   }                   catch(Exception ex2) {                        if(log.isErrorEnabled()) log.error("exception is " + ex2);                   }               }               catch(Throwable ex) {                    if(log.isErrorEnabled()) log.error("exception is " + ex);               }           }       }