Commit 9f336fad authored by Dan Melnic's avatar Dan Melnic Committed by Facebook GitHub Bot

Add DecoratedAsyncTransportWrapper zerocopy support

Summary:
Add DecoratedAsyncTransportWrapper zerocopy support

(Note: this ignores all push blocking failures!)

Reviewed By: mingtaoy

Differential Revision: D21317312

fbshipit-source-id: 9a33402bbea5ab975231d812febe48ac2517ebe0
parent b07e3455
......@@ -194,6 +194,18 @@ class DecoratedAsyncTransportWrapper : public folly::AsyncTransportWrapper {
return transport_->getSelfCertificate();
}
bool setZeroCopy(bool enable) override {
return transport_->setZeroCopy(enable);
}
bool getZeroCopy() const override {
return transport_->getZeroCopy();
}
void setZeroCopyEnableFunc(ZeroCopyEnableFunc func) override {
transport_->setZeroCopyEnableFunc(func);
}
protected:
~DecoratedAsyncTransportWrapper() override {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment