commit | 60441623cf8840a757e9ef1a202c6551e6484ffc | [log] [tgz] |
---|---|---|
author | Daniel Willmann <daniel@totalueberwachung.de> | Thu Jul 28 19:04:57 2011 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Mon Aug 22 23:45:56 2011 +0200 |
tree | 0680664fe1cd7887578d055a8cd3037bf9d5d182 | |
parent | 97f5a1a22ed35ccfd0ba3a32cce232856f2574dc [diff] [blame] |
contrib/bsc_control.py: Patch by Holger to handle connection resets
diff --git a/openbsc/contrib/bsc_control.py b/openbsc/contrib/bsc_control.py index 36c8e45..9dc01e3 100755 --- a/openbsc/contrib/bsc_control.py +++ b/openbsc/contrib/bsc_control.py
@@ -93,6 +93,10 @@ 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