[MERGED] 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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Mar 29 13:20:42 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: stream client: Ensure client is notified on reconnection
......................................................................


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(-)

Approvals:
  Neels Hofmeyr: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: Iaf8ec8662cf83476eee1b76fa41dc57f063f0ad3
Gerrit-PatchSet: 2
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: 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