Returns a {@link ByteBuffer}, usually obtained with {@link #acquire(int,boolean)}(but not necessarily), making it available for recycling and reuse.
104105106107108109110111112113114
LOG.debug(x); failAndClose(x); } finally { bufferPool.release(buffer); } } private void parse(ByteBuffer buffer) {
6970717273747576777879
{ if (readAndParse()) { HttpClient client = getHttpDestination().getHttpClient(); ByteBufferPool bufferPool = client.getByteBufferPool(); bufferPool.release(buffer); // Don't linger the buffer around if we are idle. buffer = null; } }