]> granicus.if.org Git - ejabberd/commitdiff
mod_push_keepalive: Increase default timeout
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 19 Jun 2018 20:26:08 +0000 (22:26 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 19 Jun 2018 20:26:08 +0000 (22:26 +0200)
Set the default session timeout to three days.  This way, sessions will
survive a weekend without traffic, for example.

src/mod_push_keepalive.erl

index 5dc6a20b94dddc09847918acafaa7d85d512d0ea..779fd0006ab8044cd679d94849aa69ab96bd4e01 100644 (file)
@@ -86,7 +86,7 @@ mod_opt_type(wake_on_timeout) ->
     fun (B) when is_boolean(B) -> B end.
 
 mod_options(_Host) ->
-    [{resume_timeout, 86400},
+    [{resume_timeout, 259200},
      {wake_on_start, false},
      {wake_on_timeout, true}].