Merge branch 'bugfix/remove_mbedtls_would_block_v33' into 'release/v3.3'

Remove check for would_block in mbedtls (Backport v3.3)

See merge request espressif/esp-idf!6398
This commit is contained in:
Angus Gratton 2019-10-30 11:58:09 +08:00
commit 34b14ddf5b

View file

@ -212,13 +212,6 @@ static int net_would_block( const mbedtls_net_context *ctx, int *errout )
*errout = error;
}
/*
* Never return 'WOULD BLOCK' on a non-blocking socket
*/
if ( ( fcntl( ctx->fd, F_GETFL, 0) & O_NONBLOCK ) != O_NONBLOCK ) {
return ( 0 );
}
switch ( error ) {
#if defined EAGAIN
case EAGAIN: