Home

Traffic Server Software Developers Kit

INKIOBufferReaderFree

Frees an IO buffer reader.

Prototype

INKReturnCode INKIOBufferReaderFree (INKIOBufferReader readerp)

Description

Frees an IO buffer reader. The IO buffer maintains a reference to each reader that accesses it and then frees those references when the buffer gets destroyed (which makes it unnecessary to call INKIOBufferReaderFree). It is sometimes useful to free an IO buffer reader if the reader is no longer being used to allow the buffer data to automatically be deallocated when other readers have consumed it.

Returns

INK_SUCCESS if the IO buffer is successfully freed.

INK_ERROR if an error occurs.