diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2020-03-30 19:36:26 +0530 |
---|---|---|
committer | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2020-03-30 19:46:07 +0530 |
commit | 5349bc9d1105c71158fce8dfd6a4733eb90dbb1a (patch) | |
tree | cb0aa73ca686705b5dd1076d6d3cbdacbd08e08c | |
parent | 23877ab4afbf0c2fe4092936261d92d7b7fbff11 (diff) | |
download | targetcli-5349bc9d1105c71158fce8dfd6a4733eb90dbb1a.tar.gz |
Fix targetclid daemon infinite stuck
We need to open a byte IO stream because we are actually dealing with
binary data in memory.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
-rwxr-xr-x | daemon/targetclid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/targetclid b/daemon/targetclid index dfc22ce..d4c6562 100755 --- a/daemon/targetclid +++ b/daemon/targetclid @@ -154,7 +154,7 @@ class TargetCLI: connection.close() still_listen = False else: - self.con._stdout = self.con._stderr = f = io.StringIO() + self.con._stdout = self.con._stderr = f = io.BytesIO() try: # extract multiple commands delimited with '%' list_data = data.decode().split('%') |