vici: Allow backlog size configuration via compile option
Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Tobias Brunner
parent
9eb5fcd6b6
commit
a339468c93
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user