From: Imran Zaman Date: Mon, 24 Nov 2014 14:10:49 +0000 (+0200) Subject: server: increase listen queue to 128 X-Git-Tag: 1.6.91~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11560a8d15435b06633659266b23128426d02ffc;p=platform%2Fupstream%2Fwayland.git server: increase listen queue to 128 This will allow more than 1 simultaneous client connections to the server without the possibility of connection refused error. Signed-off-by: Imran Zaman http://utcc.utoronto.ca/~cks/space/blog/unix/ListenBacklogMeaning http://stackoverflow.com/questions/19221105/connect-with-unix-domain-socket-and-full-backlog Reviewed-by: Pekka Paalanen --- diff --git a/src/wayland-server.c b/src/wayland-server.c index c40d300..c845dd6 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -1139,7 +1139,7 @@ _wl_display_add_socket(struct wl_display *display, struct wl_socket *s) return -1; } - if (listen(s->fd, 1) < 0) { + if (listen(s->fd, 128) < 0) { wl_log("listen() failed with error: %m\n"); return -1; }