Skip to content

Commit b6fc6d7

Browse files
committed
macro
1 parent 694c1db commit b6fc6d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

trantor/net/inner/TcpConnectionImpl.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ TcpConnectionImpl::TcpConnectionImpl(EventLoop *loop,
8383
ioChannelPtr_->setErrorCallback([this]() { handleError(); });
8484
socketPtr_->setKeepAlive(true);
8585
name_ = localAddr.toIpPort() + "--" + peerAddr.toIpPort();
86+
#ifdef _WIN32
8687
int size = sizeof(sendBufSize_);
8788
::getsockopt(
8889
socketPtr_->fd(), SOL_SOCKET, SO_SNDBUF, (char *)&sendBufSize_, &size);
89-
LOG_TRACE << "Send buffer size: " << sendBufSize_ << " bytes";
90+
LOG_TRACE << "System sending buffer size: " << sendBufSize_ << " bytes";
91+
#endif
9092
if (policy != nullptr)
9193
{
9294
tlsProviderPtr_ =

0 commit comments

Comments
 (0)