aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.c1
-rw-r--r--src/ping903.c2
-rw-r--r--src/ping903.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index bff22ca..da8e0f2 100644
--- a/src/config.c
+++ b/src/config.c
@@ -165,6 +165,7 @@ struct cf_stmt statements[] = {
{ "syslog-facility", STMT_T_CALLBACK, NULL, cf_syslog_facility },
{ "access-log", STMT_T_BOOL, &httpd_access_log },
{ "access-log-verbose", STMT_T_BOOL, &httpd_log_verbose },
+ { "http-backlog-size", STMT_T_ULONG, &httpd_backlog_size },
{ NULL }
};
diff --git a/src/ping903.c b/src/ping903.c
index 287b46b..7bfc77a 100644
--- a/src/ping903.c
+++ b/src/ping903.c
@@ -33,6 +33,7 @@
char *httpd_addr;
int httpd_access_log = 0;
int httpd_log_verbose = 0;
+unsigned int httpd_backlog_size = SOMAXCONN;
static int
open_node(char const *node, char const *serv, struct sockaddr **saddr)
@@ -680,6 +681,7 @@ ping903(void)
p903_httpd_handler, NULL,
MHD_OPTION_LISTEN_SOCKET, fd,
MHD_OPTION_EXTERNAL_LOGGER, p903_httpd_logger, NULL,
+ MHD_OPTION_LISTEN_BACKLOG_SIZE, httpd_backlog_size,
MHD_OPTION_END);
/* Unblock only the fatal signals */
diff --git a/src/ping903.h b/src/ping903.h
index 62bd054..2c78c1c 100644
--- a/src/ping903.h
+++ b/src/ping903.h
@@ -128,6 +128,7 @@ extern unsigned long ping_interval;
extern unsigned long ping_count;
extern unsigned long ping_tolerance;
extern size_t data_length;
+extern unsigned int httpd_backlog_size;
struct json_value *config_to_json(void);
int get_hostname_stat(char const *name, struct json_value **retval);

Return to:

Send suggestions and report system problems to the System administrator.