Thrift: Python TBufferedTransport improvements.
authorDavid Reiss <dreiss@apache.org>
Wed, 5 Sep 2007 01:14:09 +0000 (01:14 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 5 Sep 2007 01:14:09 +0000 (01:14 +0000)
commit2c2e6d27a238746a0db9982cc4eb35c093553361
tree4beeb59769e5c598bddd17d87761d98698b8185f
parent4529c4b394d39900e1b50f6be08ba31553550c0d
Thrift: Python TBufferedTransport improvements.

Summary:
The Python version of TBufferedTransport now uses input buffering.
It is also compatible with the fasbinary module.

Reviewed By: mcslee

Test Plan:
test/FastbinaryTest.py

dreiss@dreiss-vmware:~/gp/thrift/test/py$ strace -f ./TestClient.py 2>&1 | grep recv | wc -l
99
# Install new version in other terminal
dreiss@dreiss-vmware:~/gp/thrift/test/py$ strace -f ./TestClient.py 2>&1 | grep recv | wc -l
14

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665250 13f79535-47bb-0310-9956-ffa450edef68
lib/py/src/protocol/fastbinary.c
lib/py/src/transport/TTransport.py
test/FastbinaryTest.py