summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/ThriftClient.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-27 23:45:45 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-27 23:45:45 +0200
commit0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9 (patch)
tree0fb4ed212d1e9e8d48c30d69644a774eb2424b23 /module/remote/thriftbackend/ThriftClient.py
parentlittle cli improvement (diff)
downloadpyload-0c1a92dcfa6d9775d5d0da8ef5fc8d9cc40d77b9.tar.xz
thrift 0.7.0 from trunk, patched for low mem usage
Diffstat (limited to 'module/remote/thriftbackend/ThriftClient.py')
-rw-r--r--module/remote/thriftbackend/ThriftClient.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/remote/thriftbackend/ThriftClient.py b/module/remote/thriftbackend/ThriftClient.py
index 6bdbeea90..b3e6ac6ed 100644
--- a/module/remote/thriftbackend/ThriftClient.py
+++ b/module/remote/thriftbackend/ThriftClient.py
@@ -11,6 +11,7 @@ except ImportError:
sys.path.append(abspath(join(dirname(abspath(__file__)), "..", "..", "lib")))
from thrift.transport import TTransport
+#from thrift.transport.TZlibTransport import TZlibTransport
from Socket import Socket
from Protocol import Protocol
@@ -74,6 +75,7 @@ class ThriftClient:
def createConnection(self, host, port, ssl=False):
self.socket = Socket(host, port, ssl)
self.transport = TTransport.TBufferedTransport(self.socket)
+# self.transport = TZlibTransport(TTransport.TBufferedTransport(self.socket))
protocol = Protocol(self.transport)
self.client = Pyload.Client(protocol)