Attention is currently required from: JPM.
dexter has posted comments on this change by JPM. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/38687?usp=email )
Change subject: Fixing 3-digit MNC PlmnAdapter encoding & decoding, and related tests.
......................................................................
Patch Set 5:
(1 comment)
Patchset:
PS5:
As it seems unittests/test_files.py needs to be updated.
--
To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/38687?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: python/pyosmocom
Gerrit-Branch: master
Gerrit-Change-Id: I3811b227d629bd4e051a480c9622967e31f8a376
Gerrit-Change-Number: 38687
Gerrit-PatchSet: 5
Gerrit-Owner: JPM <jean-pierre.marcotte.1(a)ens.etsmtl.ca>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: JPM <jean-pierre.marcotte.1(a)ens.etsmtl.ca>
Gerrit-Comment-Date: Tue, 19 Nov 2024 16:39:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-netif/+/38826?usp=email )
Change subject: stream_cli: Allow setting nodelay sockopt after opening sock
......................................................................
stream_cli: Allow setting nodelay sockopt after opening sock
This allows users who wish to first open the socket and set the nodelay
option at a later point.
This has also a use case according to man 7 tcp:
"""
setting this option forces an explicit flush of pending output,
even if TCP_CORK is currently set.
"""
Change-Id: Ic178d924da03968de1f140bfc8805c972b849e7b
---
M src/stream_cli.c
1 file changed, 24 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/26/38826/1
diff --git a/src/stream_cli.c b/src/stream_cli.c
index d4067d6..5d8a2c2 100644
--- a/src/stream_cli.c
+++ b/src/stream_cli.c
@@ -148,6 +148,17 @@
return cli->state == STREAM_CLI_STATE_CONNECTED;
}
+/*! Check if Osmocom Stream Client is opened (has an FD available) according to
+ * its current state.
+ * \param[in] cli Osmocom Stream Client
+ * \return true if fd is available (osmo_stream_cli_get_fd()), false otherwise
+ */
+static bool stream_cli_is_opened(const struct osmo_stream_cli *cli)
+{
+ return cli->state == STREAM_CLI_STATE_CONNECTING ||
+ cli->state == STREAM_CLI_STATE_CONNECTED;
+}
+
static void osmo_stream_cli_close_iofd(struct osmo_stream_cli *cli)
{
if (!cli->iofd)
@@ -911,17 +922,29 @@
/*! Set the NODELAY socket option to avoid Nagle-like behavior.
* Setting this to nodelay=true will automatically set the NODELAY
* socket option on any socket established via \ref osmo_stream_cli_open
- * or any re-connect. You have to set this _before_ opening the
+ * or any re-connect. This can be set either before or after opening the
* socket.
* \param[in] cli Stream client whose sockets are to be configured
* \param[in] nodelay whether to set (true) NODELAY before connect()
*/
void osmo_stream_cli_set_nodelay(struct osmo_stream_cli *cli, bool nodelay)
{
+ int fd;
if (nodelay)
cli->flags |= OSMO_STREAM_CLI_F_NODELAY;
else
cli->flags &= ~OSMO_STREAM_CLI_F_NODELAY;
+
+ if (!stream_cli_is_opened(cli))
+ return; /* Config will be applied upon open() time */
+
+ if ((fd = osmo_stream_cli_get_fd(cli)) < 0) {
+ LOGSCLI(cli, LOGL_ERROR, "set_nodelay(%u): failed obtaining socket\n", nodelay);
+ return;
+ }
+ if (stream_setsockopt_nodelay(fd, cli->proto, nodelay ? 1 : 0) < 0)
+ LOGSCLI(cli, LOGL_ERROR, "set_nodelay(%u): failed setsockopt err=%d\n",
+ nodelay, errno);
}
/*! Open connection of an Osmocom stream client.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/38826?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: Ic178d924da03968de1f140bfc8805c972b849e7b
Gerrit-Change-Number: 38826
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-hlr/+/38823?usp=email
to look at the new patch set (#2).
Change subject: gsup: Replace deprecated ipa_msg_push_header()
......................................................................
gsup: Replace deprecated ipa_msg_push_header()
Use the libosmocore API, which does the same except setting the l2h
pointer, which we don't really need here.
Change-Id: I7a4d05a0b09032d8133d8775fb4707a4da8f0cf3
---
M src/gsup_server.c
M src/gsupclient/gsup_client.c
2 files changed, 5 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/23/38823/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/38823?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: I7a4d05a0b09032d8133d8775fb4707a4da8f0cf3
Gerrit-Change-Number: 38823
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Attention is currently required from: fixeria.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-abis/+/38813?usp=email )
Change subject: ipaccess: Replace ipa_bts_id_resp() with libosmocore ipa_ccm_make_id_resp_from_req()
......................................................................
Set Ready For Review
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/38813?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I7f32231bff792b01e33f604bbb8b68fe22876abb
Gerrit-Change-Number: 38813
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 19 Nov 2024 13:42:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No