mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-29 21:09:32 +00:00
Add a contingency for temporary read error
This commit is contained in:
parent
4a0d419f85
commit
2d43fac1b5
@ -73,7 +73,10 @@ def get_buffer_output(nodename):
|
||||
out.flush()
|
||||
select.select((instream,), (), (), 30)
|
||||
while not outdata or outdata[-1]:
|
||||
chunk = instream.read(128)
|
||||
try:
|
||||
chunk = instream.read(128)
|
||||
except IOError:
|
||||
chunk = None
|
||||
if chunk:
|
||||
outdata.extend(chunk)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user