mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
fix TLS multiple-record-per-frame handling in bare metal
This commit is contained in:
1 parent
bf592a22ae
commit
8de9699390
5 files changed
+25
-39
No files matched your search
@@ -11300,7 +11300,7 @@ void mg_tls_free(struct mg_connection *c) {
|
||||
long mg_tls_send(struct mg_connection *c, const void *buf, size_t len) {
|
||||
struct tls_data *tls = (struct tls_data *) c->tls;
|
||||
long n = MG_IO_WAIT;
|
||||
size_t maxsize = 1024, encrypted = 0;
|
||||
size_t maxsize = 256, encrypted = 0;
|
||||
if (len > MG_IO_SIZE) len = MG_IO_SIZE;
|
||||
if (len > 16384) len = 16384;
|
||||
while (encrypted < len) {
|
||||
|
||||
Reference in new issue
Block a user