is_closing -> is_draining

This commit is contained in:
Sergio R. Caprile committed 2023-08-17 16:45:10 -03:00
1 parent 36fcb7ed21
commit 2b20af36a7
8 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ static void fn2(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
MG_DEBUG(("Got response (%d) %.*s...", (int) hm->message.len, 12,
hm->message.ptr));
c->is_closing = 1;
c->is_draining = 1;
} else if (ev == MG_EV_CONNECT) {
mg_printf(c, "GET %s HTTP/1.1\r\n\r\n", mg_url_uri((char *) fn_data));
} else if (ev == MG_EV_CLOSE) {