You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by es...@apache.org on 2009/07/17 20:18:19 UTC

svn commit: r795176 - /incubator/thrift/trunk/lib/py/src/transport/TTwisted.py

Author: esteve
Date: Fri Jul 17 18:18:19 2009
New Revision: 795176

URL: http://svn.apache.org/viewvc?rev=795176&view=rev
Log:
THRIFT-535. py: Twisted Thrift protocol max length is too small

Modified:
    incubator/thrift/trunk/lib/py/src/transport/TTwisted.py

Modified: incubator/thrift/trunk/lib/py/src/transport/TTwisted.py
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/py/src/transport/TTwisted.py?rev=795176&r1=795175&r2=795176&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/py/src/transport/TTwisted.py (original)
+++ incubator/thrift/trunk/lib/py/src/transport/TTwisted.py Fri Jul 17 18:18:19 2009
@@ -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)