increased stroke socket backlog to 10
authorMartin Willi <martin@strongswan.org>
Wed, 30 Jul 2008 14:17:05 +0000 (14:17 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 30 Jul 2008 14:17:05 +0000 (14:17 -0000)
src/charon/plugins/stroke/stroke_socket.c

index d8ea24e..706a5ae 100644 (file)
@@ -554,7 +554,7 @@ static bool open_socket(private_stroke_socket_t *this)
                         strerror(errno));
        }
        
-       if (listen(this->socket, 0) < 0)
+       if (listen(this->socket, 10) < 0)
        {
                DBG1(DBG_CFG, "could not listen on stroke socket: %s", strerror(errno));
                close(this->socket);