[PATCH] libosmo-netif[master]: stream client: Ensure client is notified on reconnection

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Mar 20 01:32:11 UTC 2017


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/2132

to look at the new patch set (#2).

stream client: Ensure client is notified on reconnection

without setting the BSC_FD_* flags prior to reconnection, the re-connect
would happen silently and the client program would not be notified via the
connect_cb().

Change-Id: Iaf8ec8662cf83476eee1b76fa41dc57f063f0ad3
---
M src/stream.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/32/2132/2

diff --git a/src/stream.c b/src/stream.c
index f5408f8..287e297 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -340,6 +340,7 @@
 
 	switch(cli->state) {
 	case STREAM_CLI_STATE_CONNECTING:
+		cli->ofd.when |= BSC_FD_READ | BSC_FD_WRITE;
 		osmo_stream_cli_open2(cli, 1);
 	        break;
 	default:

-- 
To view, visit https://gerrit.osmocom.org/2132
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iaf8ec8662cf83476eee1b76fa41dc57f063f0ad3
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list