mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Fix mbedTLS binding for 3.x
This commit is contained in:
1 parent
323ba9d90c
commit
b796e33ede
5 files changed
+75
-87
No files matched your search
+1
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user