Description
https://github.com/couchbase/couchbase-lite-core/issues/944
The bio_return_value function does not handle errors returned by Windows, which are not POSIX errors but WSA errors and so even errors that should retry will cause the connection to close. The two that need to be added here, I believe, are WSACONNRESET and WSAEWOULDBLOCK (second one cause the issue to be filed).