From c591b77eb939222b2a9a98786a142aef787ffb61 Mon Sep 17 00:00:00 2001 From: htgeis Date: Thu, 25 Mar 2021 07:38:21 +0800 Subject: [PATCH] fix tcp_no_deplay type by using int (#4058) --- src/network/socket_wrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/socket_wrapper.hpp b/src/network/socket_wrapper.hpp index b02a7c532137..33c11d65ecd6 100644 --- a/src/network/socket_wrapper.hpp +++ b/src/network/socket_wrapper.hpp @@ -93,7 +93,7 @@ inline int inet_pton(int af, const char *src, void *dst) { namespace SocketConfig { const int kSocketBufferSize = 100 * 1000; const int kMaxReceiveSize = 100 * 1000; -const bool kNoDelay = true; +const int kNoDelay = 1; } class TcpSocket {