Просмотр исходного кода

Merge branch 'bugfix/remove_mbedtls_would_block' into 'master'

Remove check for would_block in mbedtls

See merge request espressif/esp-idf!6384
Angus Gratton 6 лет назад
Родитель
Сommit
27a4802f92
1 измененных файлов с 0 добавлено и 8 удалено
  1. 0 8
      components/mbedtls/port/net_sockets.c

+ 0 - 8
components/mbedtls/port/net_sockets.c

@@ -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: