]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ab: Disable nagle algorithm on sockets, it's not telnet.
authorYann Ylavic <ylavic@apache.org>
Fri, 21 Jul 2023 14:54:51 +0000 (14:54 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 21 Jul 2023 14:54:51 +0000 (14:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1911176 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 4a2ef2ba424a4d4d100c72f1d76bf34c75cc7561..571d2b060782e66484bf66820223064b5a7dc424 100644 (file)
@@ -1655,6 +1655,12 @@ static void start_connection(struct connection * c)
         return;
     }
 
+    if ((rv = apr_socket_opt_set(c->aprsock, APR_TCP_NODELAY, 1))) {
+        graceful_strerror("socket nodelay", rv);
+        close_connection(c);
+        return;
+    }
+
     if (windowsize != 0) {
         rv = apr_socket_opt_set(c->aprsock, APR_SO_SNDBUF,
                                 windowsize);