Check for EWOULDBLOCK/EINTR on failed send
Check for EWOULDBLOCK/EINTR on failed send

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

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