summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-05 18:57:35 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-05 18:57:35 -0300
commit6afb6e89b1a27d0bd76c0a03b7791b0265dbd632 (patch)
tree3480603ff73973d589c1ffc331c36d9f1c3ddb10
parent31b1c5685377e10d045c3a39be842186e10108a3 (diff)
downloadhercules-6afb6e89b1a27d0bd76c0a03b7791b0265dbd632.tar.gz
hercules-6afb6e89b1a27d0bd76c0a03b7791b0265dbd632.tar.bz2
hercules-6afb6e89b1a27d0bd76c0a03b7791b0265dbd632.tar.xz
hercules-6afb6e89b1a27d0bd76c0a03b7791b0265dbd632.zip
Implement TCP_QUICKACK. This is not used in TMWA.
-rw-r--r--src/common/socket.c4
1 files changed, 4 insertions, 0 deletions
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
}
/*======================================