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:35:52 UTC
svn commit: r795187 -
/incubator/thrift/trunk/lib/py/src/transport/TTwisted.py
Author: esteve
Date: Fri Jul 17 18:35:52 2009
New Revision: 795187
URL: http://svn.apache.org/viewvc?rev=795187&view=rev
Log:
THRIFT-535. py: Twisted Thrift protocol max length is too small (fix off-by-one error in MAX_LENGTH)
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=795187&r1=795186&r2=795187&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:35:52 2009
@@ -57,7 +57,7 @@
class ThriftClientProtocol(basic.Int32StringReceiver):
- MAX_LENGTH = 2 ** 31
+ MAX_LENGTH = 2 ** 31 - 1
def __init__(self, client_class, iprot_factory, oprot_factory=None):
self._client_class = client_class
@@ -101,7 +101,7 @@
class ThriftServerProtocol(basic.Int32StringReceiver):
- MAX_LENGTH = 2 ** 31
+ MAX_LENGTH = 2 ** 31 - 1
def dispatch(self, msg):
self.sendString(msg)