summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamesh Nachimuthu <rnachimu@redhat.com>2016-09-15 15:41:45 +0530
committerSahina Bose <sabose@redhat.com>2016-09-18 23:20:39 -0700
commit59af77b4ebb5a86bc478f8e37d02057ff8a803b1 (patch)
tree32c118f8c7437a64a988967224d2f190fa4de907
parent974b97eab016d4c0ae2260999e4cc9a532074f25 (diff)
increase byte size in socket.recev() in livestatusHEADmaster
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 <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/15510 Reviewed-by: Sahina Bose <sabose@redhat.com>
-rw-r--r--plugins/livestatus.py4
1 files 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