Commit 3938ebc1 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Shift calls of the file descriptor overload of AsyncSocket::AsyncSocket() to...

Shift calls of the file descriptor overload of AsyncSocket::AsyncSocket() to the NetworkSocket overload

Summary: The file descriptor overload will be going away.

Reviewed By: yfeldblum

Differential Revision: D13998628

fbshipit-source-id: 7a1d3bae03d4742d874e1e7d733f7733b5a1c110
parent ad001a22
...@@ -333,7 +333,7 @@ AsyncSocket::AsyncSocket( ...@@ -333,7 +333,7 @@ AsyncSocket::AsyncSocket(
AsyncSocket::AsyncSocket(AsyncSocket::UniquePtr oldAsyncSocket) AsyncSocket::AsyncSocket(AsyncSocket::UniquePtr oldAsyncSocket)
: AsyncSocket( : AsyncSocket(
oldAsyncSocket->getEventBase(), oldAsyncSocket->getEventBase(),
oldAsyncSocket->detachNetworkSocket().toFd(), oldAsyncSocket->detachNetworkSocket(),
oldAsyncSocket->getZeroCopyBufId()) { oldAsyncSocket->getZeroCopyBufId()) {
preReceivedData_ = std::move(oldAsyncSocket->preReceivedData_); preReceivedData_ = std::move(oldAsyncSocket->preReceivedData_);
} }
......
...@@ -53,7 +53,7 @@ class ZeroCopyTestAsyncSocket { ...@@ -53,7 +53,7 @@ class ZeroCopyTestAsyncSocket {
: counter_(counter), : counter_(counter),
evb_(evb), evb_(evb),
numLoops_(numLoops), numLoops_(numLoops),
sock_(new folly::AsyncSocket(evb, fd)), sock_(new folly::AsyncSocket(evb, folly::NetworkSocket::fromFd(fd))),
callback_(this), callback_(this),
client_(false) { client_(false) {
setBufferSize(bufferSize); setBufferSize(bufferSize);
......
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