Review at  https://gerrit.osmocom.org/2132

steam 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 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/1

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: newchange
Gerrit-Change-Id: Iaf8ec8662cf83476eee1b76fa41dc57f063f0ad3
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to