[PATCH wayland] increase server listen queue to 8

Imran Zaman imran.zaman at gmail.com
Wed Oct 15 06:43:34 PDT 2014


Hi

This will allow more than 1 simultaneous client connections to the server
without the possibility of connection refused error. possible use case
is multiple session
compositors can connect to the system compositor simultaneously.

----

diff --git a/src/wayland-server.c b/src/wayland-server.c
index 674aeca..e3b7d9f 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -1126,7 +1126,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, 8) < 0) {
  wl_log("listen() failed with error: %m\n");
  return -1;
  }


More information about the wayland-devel mailing list