<p>Max <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12760">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Stream client: fix disconnection logic<br><br>Previously closing the client did not alter its state, so we might<br>end-up with a client without any file descriptors, but being in state<br>STREAM_CLI_STATE_CONNECTED. Fix this inconsistency by setting<br>appropriate state.<br><br>Related issue is that reconnect function, which is always (at least in<br>the library and examples) called when some problem with the connection<br>is detected, closed the connection only after checking whether<br>reconnection is enabled. This might result in another inconsistency<br>fixed in this patch by moving the check below connection cleanup.<br><br>Change-Id: If41ed60bd625488c283d1e8a2b078e640f04c78e<br>---<br>M src/stream.c<br>1 file changed, 5 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/60/12760/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12760">change 12760</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/12760"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-netif </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: If41ed60bd625488c283d1e8a2b078e640f04c78e </div>
<div style="display:none"> Gerrit-Change-Number: 12760 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pablo Neira Ayuso <pablo@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>