private void throttleLoopOnException(){
  long now=System.currentTimeMillis();
  if (lastExceptionTime == 0L || (now - lastExceptionTime) > 5000) {
    lastExceptionTime=now;
    recentExceptionCount=0;
  }
 else {
    if (++recentExceptionCount >= 10) {
      try {
        Thread.sleep(10000);
      }
 catch (      InterruptedException ignore) {
      }
    }
  }
}

private void throttleLoopOnException ( ) { long now = System . currentTimeMillis ( ) ; if ( lastExceptionTime == 0L || ( now - lastExceptionTime ) > 5000 ) { lastExceptionTime = now ; recentExceptionCount = 0 ; } else { if ( ++ recentExceptionCount >= 10 ) { try { Thread . sleep ( 10000 ) ; } catch ( InterruptedException ignore ) { } } } }
throttles the accept loop after an exception has been caught : if a burst of 10 exceptions in 5 seconds occurs , then wait for 10 seconds to curb busy cpu usage .
