From f8fd9969e11be66c1757598df778d80938a60fd3 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 28 Jul 2011 16:39:17 +1000 Subject: [PATCH] Return valid "inactivity" in session creation response --- src/web/ejabberd_bosh.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/ejabberd_bosh.erl b/src/web/ejabberd_bosh.erl index 83e0841f8..68cba4646 100644 --- a/src/web/ejabberd_bosh.erl +++ b/src/web/ejabberd_bosh.erl @@ -288,7 +288,7 @@ wait_for_session(#body{attrs = Attrs} = Req, From, State) -> {wait, Wait}, {ver, ?BOSH_VERSION}, {polling, ?DEFAULT_POLLING}, - {inactivity, ?DEFAULT_INACTIVITY}, + {inactivity, State#state.inactivity_timeout}, {hold, Hold}, {'xmpp:restartlogic', true}, {requests, Requests},