mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
Remove c->is_resp, keep it private to http.c
This commit is contained in:
1 parent
bba5a0ca3a
commit
71e0176944
9 files changed
+32
-42
No files matched your search
@@ -772,13 +772,8 @@ void mg_mgr_poll(struct mg_mgr *mgr, int ms) {
|
||||
|
||||
for (c = mgr->conns; c != NULL; c = tmp) {
|
||||
long flush = 0;
|
||||
bool is_resp = c->is_resp;
|
||||
tmp = c->next;
|
||||
mg_call(c, MG_EV_POLL, &now);
|
||||
if (is_resp && !c->is_resp) {
|
||||
long n = 0;
|
||||
mg_call(c, MG_EV_READ, &n);
|
||||
}
|
||||
MG_VERBOSE(("%lu %c%c %c%c%c%c%c %lu %lu", c->id,
|
||||
c->is_readable ? 'r' : '-', c->is_writable ? 'w' : '-',
|
||||
c->is_tls ? 'T' : 't', c->is_connecting ? 'C' : 'c',
|
||||
|
||||
Reference in new issue
Block a user