arehbein submitted this change.

View Change

Objections: Jenkins Builder: Fails
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(-)

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 change 32810. To unsubscribe, or for help writing mail filters, visit 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@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <daniel@totalueberwachung.de>
Gerrit-MessageType: merged