<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9888">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">stream.c: Use non-blocking connect in osmo_stream_cli<br><br>When establishing a client-side stream connection via libosmo-netif,<br>we must using non-blocking connect if we want to avoid blocking/stalling<br>the entire process.  The libosmocore socket API provides the<br>OSMO_SOCK_F_NONBLOCK flag for this.  Make use of it!<br><br>Change-Id: I9bfcb39b5801a36ef32ca0d1f3eb8236687d7ed6<br>Related: OS#3383<br>---<br>M src/stream.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/libosmo-netif refs/changes/88/9888/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/stream.c b/src/stream.c</span><br><span>index 9dcb94b..6eb2313 100644</span><br><span>--- a/src/stream.c</span><br><span>+++ b/src/stream.c</span><br><span>@@ -451,7 +451,7 @@</span><br><span>   ret = osmo_sock_init2(AF_INET, SOCK_STREAM, cli->proto,</span><br><span>                         cli->local_addr, cli->local_port,</span><br><span>                              cli->addr, cli->port,</span><br><span style="color: hsl(0, 100%, 40%);">-                             OSMO_SOCK_F_CONNECT|OSMO_SOCK_F_BIND);</span><br><span style="color: hsl(120, 100%, 40%);">+                        OSMO_SOCK_F_CONNECT|OSMO_SOCK_F_BIND|OSMO_SOCK_F_NONBLOCK);</span><br><span>    if (ret < 0) {</span><br><span>            if (reconnect)</span><br><span>                       osmo_stream_cli_reconnect(cli);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9888">change 9888</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/9888"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9bfcb39b5801a36ef32ca0d1f3eb8236687d7ed6 </div>
<div style="display:none"> Gerrit-Change-Number: 9888 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>