Commit 44b142c4 authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Shift calls of AsyncServerSocket.getSocket to AsyncServerSocket.getNetworkSocket

Summary: The file-descriptor backed API will be going away.

Reviewed By: yfeldblum, ryantimwilson

Differential Revision: D13603038

fbshipit-source-id: d89d3a3836ab551ec92c2fb1f74248cc2119ba03
parent 57e26df8
......@@ -337,7 +337,7 @@ void AsyncServerSocket::bindSocket(
bool AsyncServerSocket::setZeroCopy(bool enable) {
if (msgErrQueueSupported) {
int fd = getSocket();
int fd = getNetworkSocket().toFd();
int val = enable ? 1 : 0;
int ret = setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, &val, sizeof(val));
......
......@@ -95,7 +95,7 @@ TEST(AsyncSocketTest, tosReflect) {
auto server1 = AsyncServerSocket::newSocket(&base);
server1->bind(0);
server1->listen(10);
int fd = server1->getSocket();
int fd = server1->getNetworkSocket().toFd();
// Verify if tos reflect is disabled by default
// and the TCP_SAVE_SYN setting is not enabled
......
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