<p style="white-space: pre-wrap; word-wrap: break-word;">close() should not affect unacknoledged data, it will still be sent afterwards (the socket object is simply moved into another state), but I bet the close() path is not followed whenever a process is killed due to a sigsegfault, since in that case the stream is broken unexpectedly, so it makes no sense to keep sending data (unless the process has already asked previously to close() the socket), and as a result some data may be lost and never sent over the network.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I agree though that it's really specific scenarios and I realized after your comments that indeed we sometimes send bulk data over VTY too, so I don't have an strong opinion on merging or abandoning this patch.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20575">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20575">change 20575</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/libosmocore/+/20575"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I34f8d3ac70045e48613f67e3c79c2ff49c4d2794 </div>
<div style="display:none"> Gerrit-Change-Number: 20575 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 12 Oct 2020 16:20:47 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>