Quellcode durchsuchen

connection_https: reset tls_read_ready when no data is available

Evgeny Grin (Karlson2k) vor 8 Jahren
Ursprung
Commit
de5c159df5
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      src/microhttpd/connection_https.c

+ 2 - 0
src/microhttpd/connection_https.c

@@ -64,6 +64,8 @@ recv_tls_adapter (struct MHD_Connection *connection,
       if (GNUTLS_E_AGAIN == res)
         connection->epoll_state &= ~MHD_EPOLL_STATE_READ_READY;
 #endif
+      /* Any network errors means that buffer is empty. */
+      connection->tls_read_ready = false;
       return MHD_ERR_AGAIN_;
     }
   if (res < 0)