/[Apache-SVN]
ViewVC logotype

Revision 665646


Jump to revision: Previous Next
Author: dreiss
Date: Tue Apr 8 05:07:26 2008 UTC (16 years, 7 months ago)
Changed paths: 3
Log Message:
Fix a bug in TPipedTransport that broke pipelining.

Previously, TPipedTransport wrote it's full buffer to the "pipe" and
fully reset its buffer on a readEnd.  This assumed that the buffer was
fully read at that point.  This is not the case if requests are pipelined.
This change makes it only pipe out the portion that has been read and
copy the unread portion to the beginning of the buffer.

Also add a test that verifies the new functionality.


Changed paths

Path Details
Directoryincubator/thrift/trunk/lib/cpp/src/transport/TTransportUtils.h modified , text changed
Directoryincubator/thrift/trunk/test/Makefile.am modified , text changed
Directoryincubator/thrift/trunk/test/TPipedTransportTest.cpp added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26