Update async to use epoll instead of poll
This commit is contained in:
		| @@ -296,7 +296,7 @@ int main(int argc, char *const argv[]) { | ||||
|     workers_init(); | ||||
|  | ||||
|     for (int i = 0; i < NUM_SOCKETS; i++) { | ||||
|         async_fd(sockets[i], POLLIN, ASYNC_KEEP, accept_cb, &sockets[i], accept_err_cb, &sockets[i]); | ||||
|         async_fd(sockets[i], ASYNC_WAIT_READ, ASYNC_KEEP, &sockets[i], accept_cb, accept_err_cb); | ||||
|     } | ||||
|  | ||||
|     notice("Ready to accept connections"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user