Fix mbedTLS binding for 3.x

This commit is contained in:
Sergey Lyubka committed 2024-05-16 10:45:11 +01:00
1 parent 323ba9d90c
commit b796e33ede
5 files changed
+75 -87

No files matched your search

+1 -2
View File
@@ -285,8 +285,7 @@ static void read_conn(struct mg_connection *c) {
} else {
if (n > 0) c->rtls.len += (size_t) n;
if (c->is_tls_hs) mg_tls_handshake(c);
if (c->is_tls_hs) return;
n = mg_tls_recv(c, buf, len);
n = c->is_tls_hs ? (long) MG_IO_WAIT : mg_tls_recv(c, buf, len);
}
} else {
n = recv_raw(c, buf, len);