mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Fix handling of queued stanzas on session timeout
Don't fail to resend or bounce unacknowledged stanzas if the stream management session timed out. Closes #1160.
This commit is contained in:
parent
6f2b0179e7
commit
c91c5aa352
@ -2863,7 +2863,8 @@ check_queue_length(#state{mgmt_queue = Queue,
|
||||
|
||||
handle_unacked_stanzas(StateData, F)
|
||||
when StateData#state.mgmt_state == active;
|
||||
StateData#state.mgmt_state == pending ->
|
||||
StateData#state.mgmt_state == pending;
|
||||
StateData#state.mgmt_state == timeout ->
|
||||
Queue = StateData#state.mgmt_queue,
|
||||
case queue:len(Queue) of
|
||||
0 ->
|
||||
@ -2885,7 +2886,8 @@ handle_unacked_stanzas(_StateData, _F) ->
|
||||
|
||||
handle_unacked_stanzas(StateData)
|
||||
when StateData#state.mgmt_state == active;
|
||||
StateData#state.mgmt_state == pending ->
|
||||
StateData#state.mgmt_state == pending;
|
||||
StateData#state.mgmt_state == timeout ->
|
||||
ResendOnTimeout =
|
||||
case StateData#state.mgmt_resend of
|
||||
Resend when is_boolean(Resend) ->
|
||||
|
Loading…
Reference in New Issue
Block a user