Fix MbedTLS disconnect handling. (#500)
This commit is contained in:
1 parent
70602c4e6b
commit
39e085bebc
1 file changed
+5
@@ -352,6 +352,11 @@ namespace ix
|
||||
return res;
|
||||
}
|
||||
|
||||
if (res == 0)
|
||||
{
|
||||
errno = ECONNRESET;
|
||||
}
|
||||
|
||||
if (res == MBEDTLS_ERR_SSL_WANT_READ || res == MBEDTLS_ERR_SSL_WANT_WRITE)
|
||||
{
|
||||
errno = EWOULDBLOCK;
|
||||
|
||||
Reference in new issue
Block a user