Skip to content

Commit

Permalink
Merge branch 'bugfix/remove_mbedtls_would_block' into 'master'
Browse files Browse the repository at this point in the history
Remove check for would_block in mbedtls

See merge request espressif/esp-idf!6384
  • Loading branch information
projectgus committed Oct 21, 2019
2 parents c4fddc8 + 87c3dec commit 27a4802
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions components/mbedtls/port/net_sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,6 @@ static int net_would_block( const mbedtls_net_context *ctx )
{
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 ) {
#if defined EAGAIN
case EAGAIN:
Expand Down

0 comments on commit 27a4802

Please sign in to comment.