commit 79b3ccfe7d76548d701405be5256839a3ce9324f
parent 693a07250f7c24c709dc7b299d7b86c45c8866aa
Author: Joris Vink <joris@coders.se>
Date: Thu, 16 Oct 2014 21:45:43 +0200
kqueue event list should hold worker_max_connections * 2
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bsd.c b/src/bsd.c
@@ -72,7 +72,7 @@ kore_platform_event_init(void)
fatal("kqueue(): %s", errno_s);
nchanges = 0;
- event_count = worker_max_connections + nlisteners;
+ event_count = (worker_max_connections * 2) + nlisteners;
events = kore_calloc(event_count, sizeof(struct kevent));
changelist = kore_calloc(event_count, sizeof(struct kevent));