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.
This commit is contained in:
Holger Weiss 2016-08-03 02:15:15 +02:00
parent 4add262090
commit 3c1e4f0dfd
1 changed files with 1 additions and 1 deletions

View File

@ -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,