Reset the available read buffers if rbytes==0
Reset the available read buffers if rbytes==0

If rbytes is zero then we don't need any of the previous data between
rbuf (start of read buffer) and rcurr (current position), so can reset
rcurr back to rbuf, making more read buffer available without having
to allocate more memory.

Change-Id: I5850a4de853687db84d89123335cc56141329b76
Reviewed-on: http://review.couchbase.org/38553
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>

owendCB/memcached,cloudrain21/memcached-1,couchbase/memcached,mrkwse/memcached,daverigby/kv_engine,cloudrain21/memcached-1,daverigby/memcached,owendCB/memcached,cloudrain21/memcached-1,jimwwalker/memcached,cloudrain21/memcached-1,daverigby/kv_engine,owendCB/memcached,mrkwse/memcached,couchbase/memcached,daverigby/memcached,jimwwalker/memcached,mrkwse/memcached,owendCB/memcached,couchbase/memcached,mrkwse/memcached,daverigby/kv_engine,jimwwalker/memcached,couchbase/memcached,daverigby/memcached,daverigby/memcached,daverigby/kv_engine