25
1
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:
Mickaël Rémond 2007-12-08 16:39:02 +00:00
parent 23b91e953a
commit 5a3c80e380
2 changed files with 11 additions and 4 deletions

View File

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

View File

@ -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;
_ ->