Attention is currently required from: daniel, dexter, jolly, pespin.
laforge has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmo-netif/+/35979?usp=email )
Change subject: stream_cli: Correctly setup and free osmo_io client instance
......................................................................
Patch Set 8: Code-Review+1
(1 comment)
Patchset:
PS7:
I don't get it. osmo_iofd_setup is somtehing you
call once for allocation and configuration. […]
ok, so normally
osmo_stream_cli_create() should be calling osmo_iofd_setup(). In osmo_stream_cli_open()
we should only call osmo_iofd_register(). That way we could do any number of open/close
(vs. register/unregister) cycles without having to allocate a new iofd.
The reason we're not using osmo_iofd as it is expected to use is probably because in
osmo_stream_cli_create() we don't yet know the mode, and hence don't know if we
should go the osmo_fd or the osmo_iofd route.
Therefore we need to work-around this by doing osmo_iofd_setup() every time we go through
osmo_stream_cli_open() - and hence we also need to free it. Sad, but we need to work
around the mode not being known earlier. We might add some comments to explain the
unusual use of osmo_iofd
--
To view, visit
https://gerrit.osmocom.org/c/libosmo-netif/+/35979?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I91a6a76b9ff96034a7b333edf87af27490202932
Gerrit-Change-Number: 35979
Gerrit-PatchSet: 8
Gerrit-Owner: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 07 Mar 2024 16:45:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: jolly <andreas(a)eversberg.eu>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: comment