vici: Allow backlog size configuration via compile option

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2025-07-07 14:20:13 +02:00
committed by Tobias Brunner
parent 9eb5fcd6b6
commit a339468c93
2 changed files with 9 additions and 1 deletions
+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;
/**