arehbein has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/32810 )
Change subject: stream: Fix endless loop on server on client disconnect
......................................................................
stream: Fix endless loop on server on client disconnect
Not sure why, but select() keeps reporting read events it seems,
even though the client doesn't send any packets anymore.
Without this line, the server gets stuck in an endless read loop
with zero bytes read because of that.
Change-Id: I012ddf14ae17642a52d34026d85ab6958cf488a1
---
M src/stream.c
1 file changed, 15 insertions(+), 0 deletions(-)
Objections:
Jenkins Builder: Fails
diff --git a/src/stream.c b/src/stream.c
index 98a4be9..421c951 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -1409,6 +1409,7 @@
if (conn->flags & OSMO_STREAM_SRV_F_FLUSH_DESTROY) {
LOGP(DLINP, LOGL_DEBUG, "Connection is being flushed and closed; ignoring received message\n");
msgb_free(msg);
+ osmo_stream_srv_destroy(conn);
return;
}
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/32810
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: arehbein/osmo_io_ipa
Gerrit-Change-Id: I012ddf14ae17642a52d34026d85ab6958cf488a1
Gerrit-Change-Number: 32810
Gerrit-PatchSet: 1
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <daniel(a)totalueberwachung.de>
Gerrit-MessageType: merged
arehbein has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/32812 )
Change subject: stream: Fix segmentation for client
......................................................................
stream: Fix segmentation for client
Related: OS#5753, OS#5751
Change-Id: I0ddf26e29bf0b954e5897c0776dae5eb27712fdb
---
M src/stream.c
1 file changed, 11 insertions(+), 0 deletions(-)
Objections:
daniel: I would prefer this is not merged as is
Jenkins Builder: Fails
diff --git a/src/stream.c b/src/stream.c
index b17bd10..e773466 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -825,6 +825,7 @@
client_ops.segmentation_cb = segmentation_cbs[osp];
osmo_iofd_set_ioops(cli->iofd, &client_ops);
cli->flags |= OSMO_STREAM_CLI_F_RECONF;
+ osmo_iofd_set_ioops(cli->iofd, &osmo_stream_cli_ioops);
}
/*! \brief Set the socket type for the stream server link
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/32812
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: arehbein/osmo_io_ipa
Gerrit-Change-Id: I0ddf26e29bf0b954e5897c0776dae5eb27712fdb
Gerrit-Change-Number: 32812
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: daniel.
arehbein has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/33084 )
Change subject: osmo_io: Fix sending msgb structures
......................................................................
Patch Set 2:
This change is ready for review.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33084
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ie2a9c93f820fa372a1d527c805fd0fe2cff0eb49
Gerrit-Change-Number: 33084
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 30 May 2023 10:34:47 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
arehbein has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/33084 )
Change subject: osmo_io: Fix sending msgb structures
......................................................................
Patch Set 2:
(1 comment)
This change is ready for review.
Patchset:
PS2:
I have changed my workflow from using Gerrit for collab on a private branch to pushing to refs/for/master.
Tried moving a commit by pushing it to refs/for/master when it was on a private Gerrit branch before, but the comments didn't move.
Can't move the change after abandoning the commit on refs/for/master, because the system still registers the commit as existing, even though it is abandoned... so long story short, in order to find the discussion up to now, look here
https://gerrit.osmocom.org/c/libosmocore/+/32904
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/33084
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ie2a9c93f820fa372a1d527c805fd0fe2cff0eb49
Gerrit-Change-Number: 33084
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Comment-Date: Tue, 30 May 2023 10:34:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment