mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 11:44:31 +02:00
Merge branch 'bugfix/remove_mbedtls_would_block_v40' into 'release/v4.0'
Remove check for would_block in mbedtls (Backport v4.0) See merge request espressif/esp-idf!6913
This commit is contained in:
@@ -198,14 +198,6 @@ static int net_would_block( const mbedtls_net_context *ctx )
|
|||||||
{
|
{
|
||||||
int error = errno;
|
int error = errno;
|
||||||
|
|
||||||
/*
|
|
||||||
* Never return 'WOULD BLOCK' on a non-blocking socket
|
|
||||||
*/
|
|
||||||
if ( ( fcntl( ctx->fd, F_GETFL, 0) & O_NONBLOCK ) != O_NONBLOCK ) {
|
|
||||||
errno = error;
|
|
||||||
return ( 0 );
|
|
||||||
}
|
|
||||||
|
|
||||||
switch ( errno = error ) {
|
switch ( errno = error ) {
|
||||||
#if defined EAGAIN
|
#if defined EAGAIN
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
|
Reference in New Issue
Block a user