Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 1b8f11f4 authored by rswindell's avatar rswindell

Changed default listen backlog to 5.

parent d2d5056f
......@@ -73,6 +73,7 @@
#define MAX_SERVICES 128
#define TIMEOUT_THREAD_WAIT 60 /* Seconds */
#define MAX_UDP_BUF_LEN 8192 /* 8K */
#define DEFAULT_LISTEN_BACKLOG 5
static services_startup_t* startup=NULL;
static scfg_t scfg;
......@@ -1284,7 +1285,7 @@ static service_t* read_services_cfg(service_t* service, char* services_cfg, DWOR
service=np;
memset(&service[*services],0,sizeof(service_t));
service[*services].socket=INVALID_SOCKET;
service[*services].listen_backlog=SOMAXCONN;
service[*services].listen_backlog=DEFAULT_LISTEN_BACKLOG;
tp=p;
while(*tp && *tp>' ') tp++;
......@@ -1329,7 +1330,7 @@ static service_t* read_services_ini(service_t* service, char* services_ini, DWOR
serv.socket=INVALID_SOCKET;
serv.port=iniGetShortInt(fp,sec_list[i],"Port",0);
serv.max_clients=iniGetInteger(fp,sec_list[i],"MaxClients",0);
serv.listen_backlog=iniGetInteger(fp,sec_list[i],"ListenBacklog",SOMAXCONN);
serv.listen_backlog=iniGetInteger(fp,sec_list[i],"ListenBacklog",DEFAULT_LISTEN_BACKLOG);
serv.options=iniGetBitField(fp,sec_list[i],"Options",service_options,0);
SAFECOPY(serv.cmd,iniGetString(fp,sec_list[i],"Command","",cmd));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment