mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
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:
parent
4add262090
commit
3c1e4f0dfd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user