From 0314d6153e6f97bd8d8079eaf5d1f7c155f5a9da Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Thu, 23 Dec 2021 12:09:34 +0200 Subject: [PATCH] [benchmarks] Minor updates. --- examples/dummy/haproxy-dummy.conf | 16 ++++------------ examples/dummy/nginx-dummy.conf | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/examples/dummy/haproxy-dummy.conf b/examples/dummy/haproxy-dummy.conf index 88ead1e..b9119ba 100644 --- a/examples/dummy/haproxy-dummy.conf +++ b/examples/dummy/haproxy-dummy.conf @@ -1,23 +1,15 @@ - global nbthread 2 - + maxconn 16640 defaults + mode http timeout client 6s timeout server 6s timeout connect 6s - timeout tarpit 1s - frontend http - mode http - bind ipv4@127.9.185.194:8080 - - # NOTE: Equivalent to `kawipiko`'s `--dummy-empty` - # http-request return - - # NOTE: Equivalent to `kawipiko`'s `--dummy` - http-request return status 200 content-type "text/plain; charset=utf-8" string "hello world!\n" hdr "Content-Encoding" "identity" hdr "Cache-Control" "no-store, max-age=0" + bind ipv4@127.9.185.194:8080 defer-accept backlog 65536 + http-request return status 200 string "hello world!\n" content-type "text/plain; charset=utf-8" hdr "Content-Encoding" "identity" hdr "Cache-Control" "no-store, max-age=0" diff --git a/examples/dummy/nginx-dummy.conf b/examples/dummy/nginx-dummy.conf index 3c3d3b9..84a3a7e 100644 --- a/examples/dummy/nginx-dummy.conf +++ b/examples/dummy/nginx-dummy.conf @@ -13,7 +13,7 @@ http { server { - listen 127.9.185.194:8080 bind reuseport backlog=65536; + listen 127.9.185.194:8080 bind reuseport deferred backlog=65536; keepalive_disable none; keepalive_requests 262144;