vici: Allow backlog size configuration via compile option

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
This commit is contained in:
Thomas Egerer authored and Tobias Brunner committed 2025-07-07 14:20:13 +02:00
1 parent 9eb5fcd6b6
commit a339468c93
2 files changed
+9 -1

No files matched your search

+2 -1
View 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");
+7
View File
@@ -31,6 +31,13 @@
#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;
/**