fixeria has uploaded this change for review.

View Change

sctp_proxy: connecting/3: clarify loop state transition

Change-Id: I085955d1fd8e1c312c0630a2ba821d7bfd0814c1
---
M src/sctp_proxy.erl
1 file changed, 2 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/17/41617/1
diff --git a/src/sctp_proxy.erl b/src/sctp_proxy.erl
index 2866fcd..0fbcbf5 100644
--- a/src/sctp_proxy.erl
+++ b/src/sctp_proxy.erl
@@ -133,7 +133,8 @@
ok = enb_registry:enb_event(Handle, {?FUNCTION_NAME, EnbConnInfo}),
%% Initiate connection establishment with the MME
{ok, Sock} = sctp_client:connect(MmeConnCfg),
- {next_state, connecting, S#state{sock = Sock},
+ %% loop transition to enable state_timeout
+ {next_state, ?FUNCTION_NAME, S#state{sock = Sock},
[{state_timeout, 2_000, conn_est_timeout}]};

%% Handle connection establishment timeout

To view, visit change 41617. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I085955d1fd8e1c312c0630a2ba821d7bfd0814c1
Gerrit-Change-Number: 41617
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>