Fix #1445 - send error to a resolving connection when DNS error happens

This commit is contained in:
Sergey Lyubka committed 2022-01-14 08:50:01 +00:00
1 parent 5fc284722f
commit 9fd80fd136
4 files changed
+28 -17

No files matched your search

+1
View File
@@ -183,6 +183,7 @@ static void dns_cb(struct mg_connection *c, int ev, void *ev_data,
} else if (ev == MG_EV_CLOSE) {
for (d = s_reqs; d != NULL; d = tmp) {
tmp = d->next;
mg_error(d->c, "DNS error");
mg_dns_free(d);
}
}