mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Increase sock limit, fix multiple connections issue
This commit is contained in:
1 parent
6990040626
commit
3d9fa10485
4 files changed
+19
-41
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user