Change in libosmo-abis[master]: ipa: do not open socket in nonblocking mode

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue May 25 14:51:55 UTC 2021


laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/24332 )

Change subject: ipa: do not open socket in nonblocking mode
......................................................................


Patch Set 1:

> It seems you can check at any tie whether the socket is connected by calling getpeername() (if not connected, you'll get an error).


the method I'm aware is to register the file descriptor for exceptions, and when the exception is signalled to select/poll, you do a getsockopt SOL_SOCKET, SO_ERROR.  That will tell you if any error condition exists.


-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/24332
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I926a75920f7a15c670f7445f2e74e876c5fad7be
Gerrit-Change-Number: 24332
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-CC: neels <nhofmeyr at sysmocom.de>
Gerrit-Comment-Date: Tue, 25 May 2021 14:51:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210525/11cef578/attachment.htm>


More information about the gerrit-log mailing list