Commit 1cae2c39 authored by Grant Pomare's avatar Grant Pomare Committed by Facebook Github Bot

1316 change rcvBUF_ to sndBUF_ (#1319)

Summary: Pull Request resolved: https://github.com/facebook/folly/pull/1319

Reviewed By: yfeldblum, lnicco

Differential Revision: D19951699

Pulled By: afrind

fbshipit-source-id: b71d96020ca486139472512726183ae4d3555b28
parent 7ec006ed
...@@ -134,7 +134,7 @@ void AsyncUDPSocket::bind(const folly::SocketAddress& address) { ...@@ -134,7 +134,7 @@ void AsyncUDPSocket::bind(const folly::SocketAddress& address) {
if (sndBuf_ > 0) { if (sndBuf_ > 0) {
// Set the size of the buffer for the sent messages in tx_queues. // Set the size of the buffer for the sent messages in tx_queues.
int value = rcvBuf_; int value = sndBuf_;
if (netops::setsockopt( if (netops::setsockopt(
socket, SOL_SOCKET, SO_SNDBUF, &value, sizeof(value)) != 0) { socket, SOL_SOCKET, SO_SNDBUF, &value, sizeof(value)) != 0) {
throw AsyncSocketException( throw AsyncSocketException(
......
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