From f88e0bca4cba293ba17c1163e3ee338cf56f6e7e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 19 Mar 2018 08:45:13 -0400 Subject: [PATCH] Fix nodeshell hang on incomplete lines readline would hang because the filehandle was really not ready. --- confluent_client/bin/nodeshell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/nodeshell b/confluent_client/bin/nodeshell index 6db57f6a..d090e0ba 100755 --- a/confluent_client/bin/nodeshell +++ b/confluent_client/bin/nodeshell @@ -86,7 +86,7 @@ def run(): desc = pipedesc[r] node = desc['node'] data = True - while data and select.select([r], [], [], 0): + while data and select.select([r], [], [], 0)[0]: data = r.readline() if data: if desc['type'] == 'stdout':