Thrift: Make borrow (almost) always succeed for TBufferedTransport.
authorDavid Reiss <dreiss@apache.org>
Sat, 2 Feb 2008 00:54:55 +0000 (00:54 +0000)
committerDavid Reiss <dreiss@apache.org>
Sat, 2 Feb 2008 00:54:55 +0000 (00:54 +0000)
commitf495f367c9d7dd89c15b9732a7ac8d0db43596bf
tree7d3510adfb14a0b9f45c3281e43d05b53344e711
parentd46eb09befca3e43b01a00476611c7a0c0fc0254
Thrift: Make borrow (almost) always succeed for TBufferedTransport.

Chad Walters is writing a JSON protocol for Thrift, but he wants
borrow to always succeed.  That would be a pain to implement,
but here is a first step: borrow will almost always work with
TBufferedTransport.

Reviewed by: mcslee

Test Plan: Ran the DenseProtocol test and Zlib test, but more needs to be done.

Other Notes:
Also reviewed by Chad Walters, and maybe Ben Maurer.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665455 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/transport/TTransportUtils.cpp
lib/cpp/src/transport/TTransportUtils.h