fixeria submitted this change.

View Change

Approvals: Jenkins Builder: Verified osmith: Looks good to me, but someone else must approve pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved
sctp_proxy: connecting/3: clarify loop state transition

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

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: merged
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I085955d1fd8e1c312c0630a2ba821d7bfd0814c1
Gerrit-Change-Number: 41617
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>