From 59af77b4ebb5a86bc478f8e37d02057ff8a803b1 Mon Sep 17 00:00:00 2001 From: Ramesh Nachimuthu Date: Thu, 15 Sep 2016 15:41:45 +0530 Subject: increase byte size in socket.recev() in livestatus Currently we are only retriving 8192 bytes of data from livestatus for any livestatus query. This is not enough for some cases where we have huge number of volumes and bricks. So increasing the byte size to 1000000. Change-Id: Icd43c158bbb6ac4e233bd5dcbf6ce66bdf2335d5 Bug-Url: https://bugzilla.redhat.com/1351749 Signed-off-by: Ramesh Nachimuthu Reviewed-on: http://review.gluster.org/15510 Reviewed-by: Sahina Bose --- plugins/livestatus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/livestatus.py b/plugins/livestatus.py index 4145c70..be438d4 100644 --- a/plugins/livestatus.py +++ b/plugins/livestatus.py @@ -41,7 +41,7 @@ def readLiveStatus(cmd): s.shutdown(socket.SHUT_WR) # Read the answer - answer = s.recv(8192) + answer = s.recv(1000000) # Parse the answer into a table table = [line.split('|') for line in answer.split('\n')[:-1]] @@ -60,7 +60,7 @@ def readLiveStatusAsJSON(cmd): s.shutdown(socket.SHUT_WR) # Read the answer - answer = s.recv(8192) + answer = s.recv(1000000) # return the result return answer -- cgit