From d951af25ffcca56271c4b3a89b57069eff24ce69 Mon Sep 17 00:00:00 2001 From: Nicolo T Date: Thu, 8 Feb 2024 11:19:07 +0100 Subject: [PATCH] Fixed bug with NAGLE in TCP protocol --- include/protocols/tcp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/protocols/tcp.hpp b/include/protocols/tcp.hpp index 76b93fb..c95f448 100644 --- a/include/protocols/tcp.hpp +++ b/include/protocols/tcp.hpp @@ -341,7 +341,7 @@ class ConnTcp : public ConnType { int flag = 1; if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *) &flag, sizeof(int)) < 0){ MTCL_TCP_ERROR("ConnTcp::connect setsockopt ERROR: errno=%d -- %s\n", errno, strerror(errno)); - return; + return nullptr; } #endif