You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
It seems that the Cpp2 framework only supports THeaderProtocol? #20
It's definitely possible to make THeader function in a backwards compatible way though. Something like this should work:
std::unique_ptr<
HeaderClientChannel,
apache::thrift::async::TDelayedDestruction::Destructor> headerChannel(
HeaderClientChannel::newChannel(asyncsocket));
// Always use binary in loadtesting to get apples to apples comparison
headerChannel->getHeader()->setProtocolId(
apache::thrift::protocol::T_BINARY_PROTOCOL);
headerChannel->getHeader()->setClientType(THRIFT_FRAMED_DEPRECATED);
auto client = new Client(std::move(headerChannel)));
Activity
djwatson commentedon Jun 30, 2014
This is correct, cpp2 only supports THeader.
It's definitely possible to make THeader function in a backwards compatible way though. Something like this should work:
thrift/lib/cpp2/test/StreamingTest.cpp: fix SIOF bug and heap-use-aft…
Fix TMemoryBuffer::ensureCanWrite
Add e2e regression test for Cpp2Channel::writeError upgrade-teardown UAF