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(); } }
private void tunnelFailed(Throwable failure) { endPoint.close(); failed(failure); }
public void disconnect() { if (LOG.isDebugEnabled()) LOG.debug("Disconnecting {}", this); endPoint.close(); }