328329330331332333334335336337338
{ if (DEBUG) LOG.debug("write: {} {}", this, BufferUtil.toDetailString(buffers)); if (!updateState(__IDLE,__WRITING)) throw new WritePendingException(); try { buffers=flush(buffers);
919293949596979899100101
case NOT_COMPRESSING: _interceptor.write(content, complete, callback); return; case COMMITTING: callback.failed(new WritePendingException()); break; case COMPRESSING: gzip(content,complete,callback); break;
215216217218219220221
_state.set(GZState.COMPRESSING); gzip(content,complete,callback); } else callback.failed(new WritePendingException()); }
292293294295296297298299300301302
new AsyncFlush().iterate(); return; case PENDING: case UNREADY: throw new WritePendingException(); case ERROR: throw new EofException(_onError); case CLOSED:
356357358359360361362363364365366
new AsyncWrite(b,off,len,complete).iterate(); return; case PENDING: case UNREADY: throw new WritePendingException(); case ERROR: throw new EofException(_onError); case CLOSED:
460461462463464465466467468469470
new AsyncWrite(buffer,complete).iterate(); return; case PENDING: case UNREADY: throw new WritePendingException(); case ERROR: throw new EofException(_onError); case CLOSED:
542543544545546547548549550551552
180181182183184185186187188189190
* is empty else <code>false</code> (as a future) */ @Override public Future<Boolean> flush() { if (writePending) { throw new WritePendingException(); } else { writePending = true; } return new FutureFlush(sc.write(netOutBuffer)); }
706707708709710711712713714715716
* @return The number of bytes written, possibly zero */ @Override public Future<Integer> write(ByteBuffer src) { if (writePending) { throw new WritePendingException(); } else { writePending = true; } return new FutureWrite(src); }
808809810811812813814815816817818
if (closing || closed) { handler.failed(new IOException(sm.getString("channel.nio.ssl.closing")), attachment); return; } if (writePending) { throw new WritePendingException(); } else { writePending = true; } try {