aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMickaël Rémond <mickael.remond@process-one.net>2007-12-08 16:39:02 +0000
committerMickaël Rémond <mickael.remond@process-one.net>2007-12-08 16:39:02 +0000
commit5a3c80e38075775ce7ea638bd983bc49ef6f4095 (patch)
tree6bef3b184822b87067d28ffd2ed6e58710b65798 /src
parentpubsub disco_sm_items bugfix (diff)
* src/ejabberd_s2s_out.erl: Increase dialback timeout as dialback can
sometimes take longer than expected. SVN Revision: 1052
Diffstat (limited to 'src')
-rw-r--r--src/ejabberd_s2s_out.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ejabberd_s2s_out.erl b/src/ejabberd_s2s_out.erl
index d72f1f386..b7116e1a7 100644
--- a/src/ejabberd_s2s_out.erl
+++ b/src/ejabberd_s2s_out.erl
@@ -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;
_ ->