Increase sock limit, fix multiple connections issue

This commit is contained in:
Sergey Lyubka committed 2022-04-01 15:42:15 +01:00
1 parent 6990040626
commit 3d9fa10485
4 files changed
+19 -41

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ void mg_error(struct mg_connection *c, const char *fmt, ...) {
va_start(ap, fmt);
mg_vasprintf(&buf, sizeof(mem), fmt, ap);
va_end(ap);
MG_ERROR(("%lu %s", c->id, buf));
MG_ERROR(("%lu %p %s", c->id, c->fd, buf));
c->is_closing = 1; // Set is_closing before sending MG_EV_CALL
mg_call(c, MG_EV_ERROR, buf); // Let user handler to override it
if (buf != mem) free(buf);