Do not set WriteFlags::WRITE_MSG_ZEROCOPY if the buffer ! isManaged()
authorDan Melnic <dmm@fb.com>
Tue, 17 Oct 2017 23:27:56 +0000 (16:27 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 17 Oct 2017 23:30:22 +0000 (16:30 -0700)
commit68d54bdd5d12c622104d2d621e8190827d06145d
tree50cc15b9cd88c8250cf65412a0099670905042fd
parent899d83f0def74933b69dc96d07b501d4f319de69
Do not set WriteFlags::WRITE_MSG_ZEROCOPY if the buffer ! isManaged()

Summary: Do not set WriteFlags::WRITE_MSG_ZEROCOPY if the buffer isShared()

Reviewed By: yfeldblum

Differential Revision: D6068711

fbshipit-source-id: fff14dcd4fcb20c9dbb60794420845042518922c
folly/io/async/AsyncSocket.cpp