2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 03:19:48 +00:00

Add a contingency for temporary read error

This commit is contained in:
Jarrod Johnson 2021-04-02 11:54:38 -04:00
parent 4a0d419f85
commit 2d43fac1b5

View File

@ -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: