Reset the server's buffers upon reconnection
Reset the server's buffers upon reconnection

This fixes a crash experienced when requesting a new read with the
previous buffer still in tact.

This was exposed by calling lcb_failout_server on a timeout error while
maintaining the same server struct. This path is only followed for
failed negotiations but is the only time in code where we re-create the
socket.

Change-Id: Iedaed57ddf689189cc597eea29165d861ed14c97
Reviewed-on: http://review.couchbase.org/29681
Tested-by: Mark Nunberg <e7d42768707bf23038325b0b68d4b577e5f6064a@haskalah.org>
Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>

trondn/libcouchbase,PureSwift/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,maxim-ky/libcouchbase,trondn/libcouchbase,senthilkumaranb/libcouchbase,trondn/libcouchbase,mody/libcouchbase,uvenum/libcouchbase,maxim-ky/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,kojiromike/libcouchbase,PureSwift/libcouchbase,PureSwift/libcouchbase,couchbase/libcouchbase,kojiromike/libcouchbase,senthilkumaranb/libcouchbase,PureSwift/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,trondn/libcouchbase,uvenum/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,mody/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,senthilkumaranb/libcouchbase,mody/libcouchbase,maxim-ky/libcouchbase,signmotion/libcouchbase,maxim-ky/libcouchbase,senthilkumaranb/libcouchbase,mody/libcouchbase,uvenum/libcouchbase,trondn/libcouchbase,kojiromike/libcouchbase,avsej/libcouchbase,mnunberg/libcouchbase,couchbase/libcouchbase