diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-07-28 19:04:57 +0200 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2011-08-22 19:24:34 +0200 |
commit | 505ccabd64f09563e5f176264ba59e4d13ae537d (patch) | |
tree | 8ccc6df0244efb66450b7e20c70bdd06fa5e889c | |
parent | 58534aa40863c8332df4c4f46648505df2cede45 (diff) |
contrib/bsc_control.py: Patch by Holger to handle connection resets
-rwxr-xr-x | openbsc/contrib/bsc_control.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/contrib/bsc_control.py b/openbsc/contrib/bsc_control.py index 36c8e45cb..9dc01e3bf 100755 --- a/openbsc/contrib/bsc_control.py +++ b/openbsc/contrib/bsc_control.py @@ -93,6 +93,10 @@ while (len(data)>0): if options.monitor: while (True): data = sock.recv(1024) + if len(data) == 0: + print "Connection is gone." + break + while (len(data)>0): (answer, data) = remove_ipa_ctrl_header(data) print "Got message:", answer |