<p style="white-space: pre-wrap; word-wrap: break-word;">This patch may be a bit controversial, I might need a little help here.</p><p style="white-space: pre-wrap; word-wrap: break-word;">The problem is that I am able to open sockets non existing IP-addresses with ipa_client_conn_open(). The reason for this is that the OSMO_SOCK_F_NONBLOCK is set. </p><p style="white-space: pre-wrap; word-wrap: break-word;">(see also https://linux.die.net/man/3/connect, "O_NONBLOCK is set for the file descriptor for the socket and the connection cannot be immediately established; the connection shall be established asynchronously.")</p><p style="white-space: pre-wrap; word-wrap: break-word;">This means at the moment where I call ipa_client_conn_open(), the connection is not yet made when the call returns.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In this patch I remove OSMO_SOCK_F_NONBLOCK. This fixes the problem I have in osmo-bts at the moment. Everything appears to be fine, I also think that since everything in the osmo-world is controlled via a select loop the nonblocking mode is not even necessary but I am not sure.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/24332">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-abis/+/24332">change 24332</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/libosmo-abis/+/24332"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-abis </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I926a75920f7a15c670f7445f2e74e876c5fad7be </div>
<div style="display:none"> Gerrit-Change-Number: 24332 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@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-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 21 May 2021 20:29:50 +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>