mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Rollback
This commit is contained in:
1 parent
9e255bcbce
commit
f71b3b91c0
2 files changed
-2
No files matched your search
@@ -645,7 +645,6 @@ static void handle_tls_recv(struct mg_connection *c) {
|
||||
size_t avail = mg_tls_pending(c);
|
||||
size_t min = avail > MG_MAX_RECV_SIZE ? MG_MAX_RECV_SIZE : avail;
|
||||
struct mg_iobuf *io = &c->recv;
|
||||
if (avail == 0) return;
|
||||
if (io->size - io->len < min && !mg_iobuf_resize(io, io->len + min)) {
|
||||
mg_error(c, "oom");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user