Skip to content

Commit

Permalink
Fixed bug with NAGLE in TCP protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolotonci committed Feb 8, 2024
1 parent eaf034e commit d951af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/protocols/tcp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d951af2

Please sign in to comment.