summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-10-08 10:20:34 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-10-08 11:49:55 -0500
commit0b5a650845d047030f324a1ed7e97d7631133caa (patch)
tree08d47493c15748fba5b0c9ff4078c839e0d4a145 /src/services
parent97b96aec7b94f9992920fc1fdbbe6ec3b5ffa1bb (diff)
downloadvyos-1x-0b5a650845d047030f324a1ed7e97d7631133caa.tar.gz
vyos-1x-0b5a650845d047030f324a1ed7e97d7631133caa.zip
configd: T2931: workaround for suspected zmq bug
Diffstat (limited to 'src/services')
-rwxr-xr-xsrc/services/vyos-configd6
1 files 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())