I doesn't make sense to call rewind() and clear(). Use on of them... Also I think at the end we will not need any as OpenSslBufferPool calls clear() anyway in its release method.