summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-07-21 16:54:51 +0200
committerYann Ylavic <ylavic@apache.org>2023-07-21 16:54:51 +0200
commitcc71b51730aa6d5c370dd6f72ed6335b34d5c394 (patch)
treec195569f1635d3e008271ab375d5153dd245d9d1 /support
parentab: Follow up to r1910912: No need for the "events" member. (diff)
downloadapache2-cc71b51730aa6d5c370dd6f72ed6335b34d5c394.tar.xz
apache2-cc71b51730aa6d5c370dd6f72ed6335b34d5c394.zip
ab: Disable nagle algorithm on sockets, it's not telnet.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1911176 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/ab.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/ab.c b/support/ab.c
index 4a2ef2ba42..571d2b0607 100644
--- a/support/ab.c
+++ b/support/ab.c
@@ -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);