2
0
Fork 0

Use nonblocking sockets

This commit is contained in:
Stefan Bühler 2009-01-29 15:14:55 +01:00
parent d29565a211
commit 0eef3d7ee8
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,8 @@ static void server_listen_cb(struct ev_loop *loop, ev_io *w, int revents) {
worker *wrk = srv->main_worker;
guint i, min_load = g_atomic_int_get(&wrk->connection_load), sel = 0;
fd_init(s);
for (i = 1; i < srv->worker_count; i++) {
worker *wt = g_array_index(srv->workers, worker*, i);
guint load = g_atomic_int_get(&wt->connection_load);