THRIFT-535. py: Twisted Thrift protocol max length is too small
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@795176 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/py/src/transport/TTwisted.py b/lib/py/src/transport/TTwisted.py
index b5c2147..7b24232 100644
--- a/lib/py/src/transport/TTwisted.py
+++ b/lib/py/src/transport/TTwisted.py
@@ -57,6 +57,8 @@
class ThriftClientProtocol(basic.Int32StringReceiver):
+ MAX_LENGTH = 2 ** 31
+
def __init__(self, client_class, iprot_factory, oprot_factory=None):
self._client_class = client_class
self._iprot_factory = iprot_factory
@@ -99,6 +101,8 @@
class ThriftServerProtocol(basic.Int32StringReceiver):
+ MAX_LENGTH = 2 ** 31
+
def dispatch(self, msg):
self.sendString(msg)