aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-21 17:49:58 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-04-21 17:49:58 +0200
commitcc1bcdcfb2f7de523543f78332807279189d053a (patch)
tree03d0fa0c86318a3ff3c1e68d9dc3401676514ffa
parent4e463958f796fb20380cc06f257d998d1e454196 (diff)
downloaddabmux-cc1bcdcfb2f7de523543f78332807279189d053a.tar.gz
dabmux-cc1bcdcfb2f7de523543f78332807279189d053a.tar.bz2
dabmux-cc1bcdcfb2f7de523543f78332807279189d053a.zip
Increase stats_dabmux socket size
-rwxr-xr-xdoc/stats_dabmux_multi.py8
1 files 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