]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vici: Allow backlog size configuration via compile option
authorThomas Egerer <thomas.egerer@secunet.com>
Wed, 2 Jul 2025 10:46:30 +0000 (12:46 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 7 Jul 2025 12:20:13 +0000 (14:20 +0200)
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
src/libcharon/plugins/vici/vici_socket.c
src/libcharon/plugins/vici/vici_socket.h

index 1016633ab6108e40c555ce2c1517d4311b928236..9b897cb0acce20c045b04937fab988fe9e57ae89 100644 (file)
@@ -728,7 +728,8 @@ vici_socket_t *vici_socket_create(char *uri, vici_inbound_cb_t inbound,
                .user = user,
        );
 
-       this->service = lib->streams->create_service(lib->streams, uri, 3);
+       this->service = lib->streams->create_service(lib->streams, uri,
+                                                                                                VICI_SOCKET_BACKLOG);
        if (!this->service)
        {
                DBG1(DBG_CFG, "creating vici socket failed");
index 82cb8f2f2ba6a76bd2157d7b0988bc1cca7c691e..b7c2ea8f09f4e97f252583b569e04e7f59d1ff78 100644 (file)
 #define VICI_MESSAGE_SIZE_MAX (512 * 1024)
 #endif
 
+/**
+ * Maximum number of pending connections.
+ */
+#ifndef VICI_SOCKET_BACKLOG
+#define VICI_SOCKET_BACKLOG 3
+#endif
+
 typedef struct vici_socket_t vici_socket_t;
 
 /**