contrib/bsc_control.py: Patch by Holger to handle connection resets
This commit is contained in:
parent
80c37bd806
commit
7c3298af9e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue