Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email )
Change subject: sctp_proxy: add a safe wrapper for s1ap_proxy:handle_pdu/1
......................................................................
Patch Set 2:
(1 comment)
File src/sctp_proxy.erl:
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122/comment/fbeb47ef_d7f1…
PS2, Line 197: handle_pdu(Data) when is_binary(Data) ->
> isn't the when_is_binary() and the spec declaring the param to be binary() actually the same? I thin […]
The spec is for Dialyzer, it does not affect the program logic IIUC. The `is_binary()` guard ensures that this function variant is only executed when the given argument is of a binary type. The idea is to ensure that we never pass `s1ap_proxy:handle_pdu/1` anything else than a binary, and thus never blame it a bug that is actually ours (this module's own).
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: Ie6a7c9ff40789695e37be11344f5ea97fbcb8cfa
Gerrit-Change-Number: 37122
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 06 Jun 2024 21:00:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/36894?usp=email )
The change is no longer submittable: Code-Review is unsatisfied now.
Change subject: hnb_persistent: introduce disconnected timeout
......................................................................
Patch Set 3: Code-Review-2
(1 comment)
Patchset:
PS3:
let's delay this a bit until https://osmocom.org/issues/6484 is clarified
--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/36894?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Ic819d7cbc03fb39e98c204b70d016c5170dc6307
Gerrit-Change-Number: 36894
Gerrit-PatchSet: 3
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 06 Jun 2024 20:59:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email )
Change subject: sctp_proxy: add a safe wrapper for s1ap_proxy:handle_pdu/1
......................................................................
Patch Set 2: Code-Review+1
(1 comment)
File src/sctp_proxy.erl:
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122/comment/b1436aae_5930…
PS2, Line 197: handle_pdu(Data) when is_binary(Data) ->
isn't the when_is_binary() and the spec declaring the param to be binary() actually the same? I think "when_is_binary()" can be dropped.
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: Ie6a7c9ff40789695e37be11344f5ea97fbcb8cfa
Gerrit-Change-Number: 37122
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 06 Jun 2024 20:54:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: sctp_proxy: add a safe wrapper for s1ap_proxy:handle_pdu/1
......................................................................
sctp_proxy: add a safe wrapper for s1ap_proxy:handle_pdu/1
We want to keep the SCTP connection alive even if we hit a bug in
s1ap_proxy:handle_pdu/1. Otherwise, all the PDN contexts of all
the subscribers served by the respective eNB will be killed.
Change-Id: Ie6a7c9ff40789695e37be11344f5ea97fbcb8cfa
---
M src/sctp_proxy.erl
1 file changed, 27 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/22/37122/2
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: Ie6a7c9ff40789695e37be11344f5ea97fbcb8cfa
Gerrit-Change-Number: 37122
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email )
Change subject: sctp_proxy: add a safe wrapper for s1ap_proxy:handle_pdu/1
......................................................................
sctp_proxy: add a safe wrapper for s1ap_proxy:handle_pdu/1
We want to keep the SCTP connection alive even if we hit a bug in
s1ap_proxy:handle_pdu/1. Otherwise, all the PDN contexts of all
the subscribers served by the respective eNB will be killed.
Change-Id: Ie6a7c9ff40789695e37be11344f5ea97fbcb8cfa
---
M src/sctp_proxy.erl
1 file changed, 27 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw refs/changes/22/37122/1
diff --git a/src/sctp_proxy.erl b/src/sctp_proxy.erl
index 9f9072b..39bc4d7 100644
--- a/src/sctp_proxy.erl
+++ b/src/sctp_proxy.erl
@@ -155,8 +155,7 @@
{[#sctp_sndrcvinfo{assoc_id = Aid}], Data}}, S) ->
logger:debug("MME connection (id=~p, ~p:~p) -> eNB: ~p",
[Aid, MmeAddr, MmePort, Data]),
- sctp_server:send_data(maps:get(enb_aid, S),
- s1ap_proxy:handle_pdu(Data)),
+ sctp_server:send_data(maps:get(enb_aid, S), handle_pdu(Data)),
{keep_state, S};
%% Catch-all for other kinds of SCTP events
@@ -193,10 +192,21 @@
%% private API
%% ------------------------------------------------------------------
+%% A safe wrapper for s1ap_proxy:handle_pdu/1
+-spec handle_pdu(binary()) -> binary().
+handle_pdu(Data) when is_binary(Data) ->
+ try s1ap_proxy:handle_pdu(Data) of
+ NewData -> NewData
+ catch
+ Exception:Reason ->
+ logger:error("An exception occured: ~p, ~p", [Exception, Reason]),
+ Data %% proxy as-is
+ end.
+
+
%% Send a single message to the MME
sctp_send(#{sock := Sock, mme_aid := Aid}, Data) ->
- sctp_client:send_data({Sock, Aid},
- s1ap_proxy:handle_pdu(Data)).
+ sctp_client:send_data({Sock, Aid}, handle_pdu(Data)).
%% Send pending messages to the MME
--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37122?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: Ie6a7c9ff40789695e37be11344f5ea97fbcb8cfa
Gerrit-Change-Number: 37122
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37117?usp=email )
Change subject: asterisk: IMS: Validate Via port matches the ipsec port-c one
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/37117?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I3f8b2112d40dd5f018abb8bc00b9e1be16586a9b
Gerrit-Change-Number: 37117
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 06 Jun 2024 17:54:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment