mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/ejabberd_s2s_out.erl: Increase dialback timeout as dialback can
sometimes take longer than expected. SVN Revision: 1052
This commit is contained in:
parent
23b91e953a
commit
5a3c80e380
@ -1,5 +1,9 @@
|
||||
2007-12-08 Mickael Remond <mremond@process-one.net>
|
||||
|
||||
2007-12-06 Christophe Romain <christophe.romain@process-one.net>
|
||||
* src/ejabberd_s2s_out.erl: Increase dialback timeout as dialback can
|
||||
sometimes take longer than expected.
|
||||
|
||||
2007-12-08 Christophe Romain <christophe.romain@process-one.net>
|
||||
|
||||
* src/mod_pubsub/mod_pubsub.erl: disco_sm_items bugfix
|
||||
|
||||
|
@ -305,8 +305,10 @@ wait_for_validation({xmlstreamelement, El}, StateData) ->
|
||||
?DEBUG("recv verify: ~p", [{From, To, Id, Type}]),
|
||||
case StateData#state.verify of
|
||||
false ->
|
||||
NextState = wait_for_validation,
|
||||
%% TODO: Should'nt we close the connection here ?
|
||||
{next_state, wait_for_validation, StateData, ?FSMTIMEOUT};
|
||||
{next_state, NextState, StateData,
|
||||
get_timeout_interval(NextState)};
|
||||
{Pid, _Key, _SID} ->
|
||||
case Type of
|
||||
"valid" ->
|
||||
@ -324,8 +326,9 @@ wait_for_validation({xmlstreamelement, El}, StateData) ->
|
||||
StateData#state.verify == false ->
|
||||
{stop, normal, StateData};
|
||||
true ->
|
||||
{next_state, wait_for_validation, StateData,
|
||||
?FSMTIMEOUT*3}
|
||||
NextState = wait_for_validation,
|
||||
{next_state, NextState, StateData,
|
||||
get_timeout_interval(NextState)}
|
||||
end
|
||||
end;
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user