Thrift Python server code generation
Summary: Yep, it's up and running. We now have full client/server support in all of C++ Java PHP and Python. Well, not quite... there's no PHP server, but honestly who wants one? Actually, if we do want one the framework will support writing is as a PHP file that can be served in apache like a web service (i.e. restserver.php would be thriftserver.php). But now that's rambling and nothing to do with this commit.
Notes: cheever, let's chat about porting your multithreaded Pillar Python server over to Thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664783 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/py/src/protocol/TBinaryProtocol.py b/lib/py/src/protocol/TBinaryProtocol.py
index c089ac5..860f461 100644
--- a/lib/py/src/protocol/TBinaryProtocol.py
+++ b/lib/py/src/protocol/TBinaryProtocol.py
@@ -70,7 +70,7 @@
otrans.write(buff)
def writeI64(self, otrans, i64):
- buff = pack("!l", i64)
+ buff = pack("!q", i64)
otrans.write(buff)
def writeString(self, otrans, str):
@@ -150,7 +150,7 @@
def readI64(self, itrans):
buff = itrans.readAll(8)
- val, = unpack('!l', buff)
+ val, = unpack('!q', buff)
return val
def readString(self, itrans):