<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21206">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21206/2/src/osmo-bsc/osmo_bsc_main.c">File src/osmo-bsc/osmo_bsc_main.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21206/2/src/osmo-bsc/osmo_bsc_main.c@701">Patch Set #2, Line 701:</a> <code style="font-family:monospace,monospace"> sleep(3);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Why is this sleep added here in first place? Looks like a hack to me. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">a discussion on IRC reveals:</p><p style="white-space: pre-wrap; word-wrap: break-word;">"it just ensures that the write queues on Abis are drained"<br>" makes sure that the OML shutdown messages are actually sent out to the BTS" " particularly important for E1 BTSs which (at least in the case of Siemens BS-11) continue to transmit if the BSC shuts down unclean"</p><p style="white-space: pre-wrap; word-wrap: break-word;">and a better solution than the sleep() would be to continue the select loop until all write queues are empty: after the shutdown signal is emitted, set a global bool that exits the loop when all queued messages were dispatched.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21206">change 21206</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/+/21206"/><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: I506349c532b13751f674e4b9a132219d823f19e1 </div>
<div style="display:none"> Gerrit-Change-Number: 21206 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 17 Nov 2020 16:06:47 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>