From 6afb6e89b1a27d0bd76c0a03b7791b0265dbd632 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 5 May 2022 18:57:35 -0300 Subject: Implement TCP_QUICKACK. This is not used in TMWA. --- src/common/socket.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/socket.c b/src/common/socket.c index 8ee4f06e2..55dd16c43 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -410,6 +410,10 @@ static void setsocketopts(int fd, struct hSockOpt *opt) if (sSetsockopt(fd, IPPROTO_TCP, TCP_THIN_DUPACK, (char *)&yes, sizeof(yes))) ShowWarning("setsocketopts: Unable to set TCP_THIN_DUPACK mode for connection #%d!\n", fd); #endif // TCP_THIN_DUPACK +#ifdef TCP_QUICKACK + if (sSetsockopt(fd, IPPROTO_TCP, TCP_QUICKACK, (char *)&yes, sizeof(yes))) + ShowWarning("setsocketopts: Unable to set TCP_QUICKACK mode for connection #%d!\n", fd); +#endif // TCP_QUICKACK } /*====================================== -- cgit v1.2.3-60-g2f50