Fix MbedTLS disconnect handling. (#500)
This commit is contained in:
parent
70602c4e6b
commit
39e085bebc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user