summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-09-06 11:39:09 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-09-06 11:39:09 +0300
commitdaf23f9227aaba10e26b82d7741f52a910f61f20 (patch)
treea8f592f14888c68745bc26b9481f0b7608b3f252
parentdcba6221872d3f43b436a7cac301142f63d0286f (diff)
downloadmailutils-daf23f9227aaba10e26b82d7741f52a910f61f20.tar.gz
mailutils-daf23f9227aaba10e26b82d7741f52a910f61f20.tar.bz2
Honor idle timeout settings in inetd mode.
* imap4d/imap4d.c (main): For inetd mode, initialize idle_timeout from the server settings. * pop3d/pop3d.c: Likewise.
-rw-r--r--imap4d/imap4d.c2
-rw-r--r--pop3d/pop3d.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/imap4d/imap4d.c b/imap4d/imap4d.c
index 435be73de..2f92396cd 100644
--- a/imap4d/imap4d.c
+++ b/imap4d/imap4d.c
@@ -1025,6 +1025,8 @@ main (int argc, char **argv)
struct imap4d_srv_config cfg;
memset (&cfg, 0, sizeof cfg);
+ idle_timeout = mu_m_server_timeout (server);
+
if (mu_gsasl_enabled ())
{
auth_gssapi_init ();
diff --git a/pop3d/pop3d.c b/pop3d/pop3d.c
index a3b7966fe..2a44a7cfd 100644
--- a/pop3d/pop3d.c
+++ b/pop3d/pop3d.c
@@ -537,6 +537,8 @@ main (int argc, char **argv)
struct pop3d_srv_config cfg;
memset (&cfg, 0, sizeof cfg);
+ idle_timeout = mu_m_server_timeout (server);
+
switch (stls_server_check (&cfg, "<inetd>"))
{
case MU_TLS_CONFIG_OK:

Return to:

Send suggestions and report system problems to the System administrator.