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.c4
-rw-r--r--pop3d/pop3d.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/imap4d/imap4d.c b/imap4d/imap4d.c
index 435be73de..2f92396cd 100644
--- a/imap4d/imap4d.c
+++ b/imap4d/imap4d.c
@@ -1020,14 +1020,16 @@ main (int argc, char **argv)
mu_m_server_end (server);
mu_m_server_destroy (&server);
}
else
{
struct imap4d_srv_config cfg;
- memset (&cfg, 0, sizeof cfg);
+ memset (&cfg, 0, sizeof cfg);
+ idle_timeout = mu_m_server_timeout (server);
+
if (mu_gsasl_enabled ())
{
auth_gssapi_init ();
auth_gsasl_init ();
}
diff --git a/pop3d/pop3d.c b/pop3d/pop3d.c
index a3b7966fe..2a44a7cfd 100644
--- a/pop3d/pop3d.c
+++ b/pop3d/pop3d.c
@@ -534,12 +534,14 @@ main (int argc, char **argv)
}
else
{
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:
if (mu_init_tls_libs ())
status = EX_OK;
else

Return to:

Send suggestions and report system problems to the System administrator.