From cc1bcdcfb2f7de523543f78332807279189d053a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 21 Apr 2014 17:49:58 +0200 Subject: Increase stats_dabmux socket size --- doc/stats_dabmux_multi.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/stats_dabmux_multi.py b/doc/stats_dabmux_multi.py index 4501dcc..a47cf8d 100755 --- a/doc/stats_dabmux_multi.py +++ b/doc/stats_dabmux_multi.py @@ -8,6 +8,8 @@ import json import socket import os +SOCK_RECV_SIZE = 10240 + config_top = """ """ @@ -60,7 +62,7 @@ def connect(): sock = socket.socket() sock.connect(("localhost", 12720)) - version = json.loads(sock.recv(256)) + version = json.loads(sock.recv(SOCK_RECV_SIZE)) if not version['service'].startswith("ODR-DabMux"): sys.stderr.write("Wrong version\n") @@ -75,7 +77,7 @@ def get_id_from_uri(uri): if len(sys.argv) == 1: sock = connect() sock.send("values\n") - values = json.loads(sock.recv(256))['values'] + values = json.loads(sock.recv(SOCK_RECV_SIZE))['values'] munin_values = "" for ident in values: @@ -94,7 +96,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config": sock.send("config\n") - config = json.loads(sock.recv(256)) + config = json.loads(sock.recv(SOCK_RECV_SIZE)) munin_config = config_top -- cgit v1.2.3