diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-26 17:06:23 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-26 17:06:23 +0000 |
| commit | 5038c057b65cf0c3e263bcf06e5999b6ab4589c8 (patch) | |
| tree | f86f8c9e5bc36ad015972d48ebcb4a962449b72c /roundcubemail/program/include/rcmail.php | |
| parent | 5a32b534095d4ac41fa4efd4b908c0f662203c89 (diff) | |
- Added 'keep_alive' and 'min_keep_alive' options (#1485360)
git-svn-id: https://svn.roundcube.net/trunk@2013 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcmail.php')
| -rw-r--r-- | roundcubemail/program/include/rcmail.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcmail.php b/roundcubemail/program/include/rcmail.php index 53b4765b9..7eade3223 100644 --- a/roundcubemail/program/include/rcmail.php +++ b/roundcubemail/program/include/rcmail.php @@ -289,6 +289,14 @@ class rcmail foreach (array('flag_for_deletion','read_when_deleted') as $js_config_var) { $this->output->set_env($js_config_var, $this->config->get($js_config_var)); } + + // set keep-alive/check-recent interval + if ($keep_alive = $this->config->get('keep_alive')) { + // be sure that it's less than session lifetime + if ($session_lifetime = $this->config->get('session_lifetime')) + $keep_alive = min($keep_alive, $session_lifetime * 60 - 30); + $this->output->set_env('keep_alive', max(60, $keep_alive)); + } if ($framed) { $this->comm_path .= '&_framed=1'; |
