mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
Fix busy loop in TLS case
This commit is contained in:
1 parent
3ffb6c046e
commit
02cabcc0ec
5 files changed
+30
-39
No files matched your search
+2
-1
@@ -559,7 +559,8 @@ void mg_mgr_poll(struct mg_mgr *mgr, int ms) {
|
||||
} else {
|
||||
if (c->is_readable) read_conn(c);
|
||||
if (c->is_writable) write_conn(c);
|
||||
while (c->is_tls && read_conn(c) > 0) (void) 0; // Read buffered TLS data
|
||||
// while (c->is_tls && read_conn(c) > 0) (void) 0; // Read buffered TLS
|
||||
// data
|
||||
}
|
||||
|
||||
if (c->is_draining && c->send.len == 0) c->is_closing = 1;
|
||||
|
||||
Reference in new issue
Block a user