<p>neels has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/26615">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gscon clear: without SCCP conn, no need to wait for RLSD timeout<br><br>Skip the BSSMAP Clear and SCCP RLSD parts and immediately deallocate the<br>gscon when there is no SCCP connection present. Before this patch, such<br>conn would stick around for a minute before a timeout deallocates it.<br><br>Related: OS#5337<br>Change-Id: I8c8537acf6b47b121903197608636c43ae601a57<br>---<br>M src/osmo-bsc/bsc_subscr_conn_fsm.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/15/26615/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/bsc_subscr_conn_fsm.c b/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>index 121b154..b3e7c57 100644</span><br><span>--- a/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>+++ b/src/osmo-bsc/bsc_subscr_conn_fsm.c</span><br><span>@@ -210,6 +210,10 @@</span><br><span> </span><br><span> gscon_release_lchans(conn, true, bsc_gsm48_rr_cause_from_gsm0808_cause(conn->clear_cause));</span><br><span> osmo_mgcpc_ep_clear(conn->user_plane.mgw_endpoint);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ /* If there is no SCCP connection at all, then no need to wait for an SCCP RLSD. */</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!conn->sccp.msc || conn->sccp.state != SUBSCR_SCCP_ST_CONNECTED)</span><br><span style="color: hsl(120, 100%, 40%);">+ osmo_fsm_inst_term(fi, OSMO_FSM_TERM_REGULAR, NULL);</span><br><span> }</span><br><span> </span><br><span> /* forward MO DTAP from RSL side to BSSAP side */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/26615">change 26615</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/+/26615"/><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: I8c8537acf6b47b121903197608636c43ae601a57 </div>
<div style="display:none"> Gerrit-Change-Number: 26615 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>