From 0b5a650845d047030f324a1ed7e97d7631133caa Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 8 Oct 2020 10:20:34 -0500 Subject: configd: T2931: workaround for suspected zmq bug --- src/services/vyos-configd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/vyos-configd b/src/services/vyos-configd index 671a89036..5b1ab1f1f 100755 --- a/src/services/vyos-configd +++ b/src/services/vyos-configd @@ -136,7 +136,7 @@ def initialization(socket): session_string = '' # check first for resent init msg, in case of client timeout while True: - msg = socket.recv().decode() + msg = socket.recv().decode("utf-8", "ignore") try: message = json.loads(msg) if message["type"] == "init": @@ -149,10 +149,10 @@ def initialization(socket): active_string = msg resp = "active" socket.send(resp.encode()) - session_string = socket.recv().decode() + session_string = socket.recv().decode("utf-8", "ignore") resp = "session" socket.send(resp.encode()) - pid_string = socket.recv().decode() + pid_string = socket.recv().decode("utf-8", "ignore") resp = "pid" socket.send(resp.encode()) -- cgit v1.2.3