Пример #1
0
 private int fill(EndPoint endPoint, ByteBuffer buffer) {
   try {
     if (endPoint.isInputShutdown()) return -1;
     return endPoint.fill(buffer);
   } catch (IOException x) {
     endPoint.close();
     throw new RuntimeIOException(x);
   }
 }
 public void disconnect(boolean onlyOutput) {
   EndPoint endPoint = getEndPoint();
   // We need to gently close first, to allow
   // SSL close alerts to be sent by Jetty
   LOG.debug("Shutting down output {}", endPoint);
   endPoint.shutdownOutput();
   if (!onlyOutput) {
     LOG.debug("Closing {}", endPoint);
     endPoint.close();
   }
 }
Пример #3
0
 private void tunnelFailed(Throwable failure) {
   endPoint.close();
   failed(failure);
 }
Пример #4
0
 public void disconnect() {
   if (LOG.isDebugEnabled()) LOG.debug("Disconnecting {}", this);
   endPoint.close();
 }