diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-08-22 11:18:54 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-08-22 11:18:54 +0300 |
commit | 296d0bc958142cafe0e839cd43236c14c8310ee2 (patch) | |
tree | 3098696b4b0b18ae26d9df978973d1b7b4d877d1 /comsat/comsat.c | |
parent | 37388665c74c05f8ff12a77f0acc43e589a9b022 (diff) | |
download | mailutils-296d0bc958142cafe0e839cd43236c14c8310ee2.tar.gz mailutils-296d0bc958142cafe0e839cd43236c14c8310ee2.tar.bz2 |
Allow to configure the length of the backlog queue for TCP servers
New statement backlog is provided in the server block.
* include/mailutils/server.h (mu_m_server_cfg_init): Pass
mu_m_server_t as first argument.
* libmailutils/server/msrv.c (mu_m_server_cfg_init): Pass
mu_m_server_t as first argument. Customize available statements
depending on the type of server (tcp vs udp).
New statement "backlog" available for tcp servers.
* comsat/comsat.c: Update call to mu_m_server_cfg_init
* imap4d/imap4d.c: Likewise.
* pop3d/pop3d.c: Likewise.
* maidag/maidag.c: Likewise.
Diffstat (limited to 'comsat/comsat.c')
-rw-r--r-- | comsat/comsat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comsat/comsat.c b/comsat/comsat.c index 1d3dc975d..48add9af7 100644 --- a/comsat/comsat.c +++ b/comsat/comsat.c @@ -566,7 +566,6 @@ main (int argc, char **argv) mu_argp_init (NULL, NULL); comsat_init (); mu_acl_cfg_init (); - mu_m_server_cfg_init (NULL); mu_m_server_create (&server, program_version); mu_m_server_set_type (server, MU_IP_UDP); mu_m_server_set_conn (server, comsat_connection); @@ -575,6 +574,8 @@ main (int argc, char **argv) mu_m_server_set_max_children (server, 20); /* FIXME mu_m_server_set_pidfile (); */ mu_m_server_set_default_port (server, 512); + mu_m_server_cfg_init (server, NULL); + /* FIXME: timeout is not needed. How to disable it? */ mu_log_syslog = 1; |