mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-24 04:00:28 +00:00
Add a contingency for temporary read error
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user