diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-08-03 03:15:15 +0300 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-08-03 03:15:15 +0300 |
commit | 3c1e4f0dfd75d0e51fa0ec2bc42c3dbb5530e121 (patch) | |
tree | 6523cd060d6423c6999b10c34b256a32bf9719c5 | |
parent | 4add262090653e3b2e026f9181247c31acdf6090 (diff) |
XEP-0198: Increase timeout for stream resumption
During stream resumption, the #state is transferred from the old c2s
process to the new one. This is usually very fast, but under certain
conditions, it can take longer than five seconds.
-rw-r--r-- | src/ejabberd_c2s.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 24a2af56d..d69599485 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -3059,7 +3059,7 @@ inherit_session_state(#state{user = U, server = S} = StateData, ResumeID) -> end. resume_session({Time, PID}) -> - (?GEN_FSM):sync_send_all_state_event(PID, {resume_session, Time}, 5000). + (?GEN_FSM):sync_send_all_state_event(PID, {resume_session, Time}, 15000). make_resume_id(StateData) -> {Time, _} = StateData#state.sid, |