예제 #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();
 }