diff --git a/components/mbedtls/port/net_sockets.c b/components/mbedtls/port/net_sockets.c index 1a182d8f4..1a64f7f70 100644 --- a/components/mbedtls/port/net_sockets.c +++ b/components/mbedtls/port/net_sockets.c @@ -210,13 +210,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: