@Override public boolean isOutputShutdown() { return _underlying.isOutputShutdown(); }
@Override public boolean isOutputShutdown() { return _endp.isOutputShutdown(); }
public boolean isOutputShutdown() { return _endp.isOutputShutdown(); }
@Override public boolean isOutputShutdown() { return isOutboundDone() || getEndPoint().isOutputShutdown(); }
@Override public boolean isOutputShutdown() { return _sslEngine.isOutboundDone() || getEndPoint().isOutputShutdown(); }
@Override public boolean isOutputShutdown() { return _sslEngine.isOutboundDone() || getEndPoint().isOutputShutdown(); }
@Override public boolean isOutputShutdown() { return _sslEngine.isOutboundDone() || getEndPoint().isOutputShutdown(); }
private void shutdown(ISession session) { if (session != null && !getEndPoint().isOutputShutdown()) session.shutdown(); }
@Override public boolean isOutputShutdown() { return _sslEngine.isOutboundDone() || getEndPoint().isOutputShutdown(); }
@Override public boolean isOutputShutdown() { return isOutboundDone() || getEndPoint().isOutputShutdown(); }
public void flush(long maxIdleTime) throws IOException { // block until everything is flushed long now=System.currentTimeMillis(); long end=now+maxIdleTime; Buffer content = _content; Buffer buffer = _buffer; if (content!=null && content.length()>0 || buffer!=null && buffer.length()>0 || isBufferFull()) { flushBuffer(); while (now<end && (content!=null && content.length()>0 ||buffer!=null && buffer.length()>0) && _endp.isOpen()&& !_endp.isOutputShutdown()) { blockForOutput(end-now); now=System.currentTimeMillis(); } } }
@Override public void onIdleExpired(long idleForMs) { try { _logger.debug("onIdleExpired {}ms on {}",idleForMs,this); if (_endp.isOutputShutdown()) _sslEndPoint.close(); else _sslEndPoint.shutdownOutput(); } catch (IOException e) { _logger.warn(e); super.onIdleExpired(idleForMs); } }
@Override public void onIdleExpired(long idleForMs) { try { _logger.debug("onIdleExpired {}ms on {}",idleForMs,this); if (_endp.isOutputShutdown()) _sslEndPoint.close(); else _sslEndPoint.shutdownOutput(); } catch (IOException e) { _logger.warn(e); super.onIdleExpired(idleForMs); } }
public void onIdleExpired(long idleForMs) { try { LOG.debug("{} idle expired", this); if (_endPoint.isOutputShutdown()) close(); else shutdownOutput(); } catch(Exception e) { LOG.debug(e); close(); } } }
public void onIdleExpired(long idleForMs) { try { LOG.debug("{} idle expired", this); if (_endPoint.isOutputShutdown()) close(); else shutdownOutput(); } catch(Exception e) { LOG.debug(e); close(); } } }
public void onIdleExpired(long idleForMs) { try { LOG.debug("{} idle expired", this); if (_endPoint.isOutputShutdown()) close(); else shutdownOutput(); } catch(Exception e) { LOG.debug(e); close(); } } }
@Override public void onIdleExpired(long idleForMs) { try { _logger.debug("onIdleExpired {}ms on {}",idleForMs,this); if (_endp.isOutputShutdown()) _sslEndPoint.close(); else _sslEndPoint.shutdownOutput(); } catch (IOException e) { _logger.warn(e); super.onIdleExpired(idleForMs); } }
public void onIdleExpired(long idleForMs) { try { LOG.debug("{} idle expired", this); if (_endPoint.isOutputShutdown()) close(); else shutdownOutput(); } catch(Exception e) { LOG.debug(e); close(); } } }
@Override public void onIdleExpired(long idleForMs) { try { _logger.debug("onIdleExpired {}ms on {}",idleForMs,this); if (_endp.isOutputShutdown()) _sslEndPoint.close(); else _sslEndPoint.shutdownOutput(); } catch (IOException e) { _logger.warn(e); super.onIdleExpired(idleForMs); } }
public void flush(long maxIdleTime) throws IOException { // block until everything is flushed long now=System.currentTimeMillis(); long end=now+maxIdleTime; Buffer content = _content; Buffer buffer = _buffer; if (content!=null && content.length()>0 || buffer!=null && buffer.length()>0 || isBufferFull()) { flushBuffer(); while (now<end && (content!=null && content.length()>0 ||buffer!=null && buffer.length()>0)) { if (!_endp.isOpen() || _endp.isOutputShutdown()) throw new EofException(); blockForOutput(end-now); now=System.currentTimeMillis(); } } }