Details
Description
If we failed to send the last fragment of the drain buffer and there is a socket error (disconnected etc), the connection is stuck in an illegal state and looping "forever".
See http://src.couchbase.org/source/xref/4.1.1/memcached/daemon/memcached.c#6713
We need to check the ssl.error and return hard error.