summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org>2020-09-06 08:39:09 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2020-09-06 08:39:09 (GMT)
commitdaf23f9227aaba10e26b82d7741f52a910f61f20 (patch) (side-by-side diff)
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.
Diffstat (more/less context) (ignore whitespace changes)
-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 435be73..2f92396 100644
--- a/imap4d/imap4d.c
+++ b/imap4d/imap4d.c
@@ -1023,8 +1023,10 @@ main (int argc, char **argv)
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 ();
diff --git a/pop3d/pop3d.c b/pop3d/pop3d.c
index a3b7966..2a44a7c 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.