<p>ipse has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18438">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Return -ENOTCONN from gsm0408_rcvmsg() if SCCP link is already closed.<br><br>Message processing here can fail for several reasons and we should be<br>able to differentiate them. If we need to discard the message because<br>of the FSM state, let's signal it to the caller differently than in<br>case of fatal errors. This would allow the caller to log the issue<br>differently.<br><br>Specifically, we observed, that we very often get Classmark Change<br>message from a phone right after the MSC has shut the SCCP connection<br>but before we close the lchan on the BTS.<br><br>This message flow hits this code path and we want to return -ENOTCONN<br>here so that the caller knows that this is not a message decoding<br>error or some other internal error.<br><br>Change-Id: I2d430ebc894a2345bebaa1841a75e94a3b45eae2<br>---<br>M src/osmo-bsc/gsm_04_08_rr.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/38/18438/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/gsm_04_08_rr.c b/src/osmo-bsc/gsm_04_08_rr.c</span><br><span>index 586eeab..ca92c5b 100644</span><br><span>--- a/src/osmo-bsc/gsm_04_08_rr.c</span><br><span>+++ b/src/osmo-bsc/gsm_04_08_rr.c</span><br><span>@@ -1016,7 +1016,7 @@</span><br><span>       lchan = msg->lchan;</span><br><span>       if (!lchan_may_receive_data(lchan)) {</span><br><span>                LOG_LCHAN(msg->lchan, LOGL_INFO, "Got data in non active state, discarding.\n");</span><br><span style="color: hsl(0, 100%, 40%);">-           return -1;</span><br><span style="color: hsl(120, 100%, 40%);">+            return -ENOTCONN;</span><br><span>    }</span><br><span> </span><br><span>        if (lchan->conn) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/18438">change 18438</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-bsc/+/18438"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2d430ebc894a2345bebaa1841a75e94a3b45eae2 </div>
<div style="display:none"> Gerrit-Change-Number: 18438 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: ipse <Alexander.Chemeris@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>