client should release buffer as soon as possible