aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-04-17 13:05:42 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-04-17 13:50:49 +0300
commit7a1985a0f05564fd7c381e828ff134836f3e3253 (patch)
tree737659273f526bcf9e31cf5efb257b718c6abfae /src/wydawca.c
parent1047ca368eaf1c0f1cda21c9b0ab3c212a3d9379 (diff)
downloadwydawca-7a1985a0f05564fd7c381e828ff134836f3e3253.tar.gz
wydawca-7a1985a0f05564fd7c381e828ff134836f3e3253.tar.bz2
Limit number of simultaneous tcpmux connections. Impose idle connection timeouts.
* src/config.c: New statements: max-connections and idle-timeout * src/net.c (max_connections,idle_timeout): New globals. (handle_connection): Take single FILE* as argument. (connection_start,connection_stop): New functions. (wy_thr_tcpmux,wy_thr_connection_watcher): New functions. (wy_thr_listen): Start wy_thr_connection_watcher thread if tcpmux listener is enabled. Start a separate thread to process each incoming connection. * src/wydawca.h (max_connections,idle_timeout): New externs. (wy_thr_tcpmux,wy_thr_connection_watcher): New protos.
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 240eca1..5c7d5d7 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -52,7 +52,6 @@ time_t wakeup_interval;
struct grecs_list *all_spool_aliases;
char *wy_gpg_homedir;
char *default_check_script;
-struct grecs_sockaddr listen_sockaddr;
unsigned min_directive_version = MIN_DIRECTIVE_VERSION;
unsigned max_directive_version = MAX_DIRECTIVE_VERSION;

Return to:

Send suggestions and report system problems to the System administrator.