/** * Flush the response. * * @throws IOException an underlying I/O error occurred */ @Override public void flush() throws IOException { super.flush(); // Flush the current buffer flushBuffer(); }
/** Recycle the output buffer. This should be called when closing the connection. */ @Override public void recycle() { super.recycle(); if (socket != null) { socket.getBufHandler().getWriteBuffer().clear(); socket = null; } lastWrite.set(1); }
/** * End request. * * @throws IOException an underlying I/O error occurred */ @Override public void endRequest() throws IOException { super.endRequest(); flushBuffer(); }