From b30f61d0040a0c2106ce8aebf712cdf7cda1568f Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Mon, 23 Jun 2025 11:32:17 +0800 Subject: [PATCH] Increase the read buffer size in the HTTP proxy to 63KB. This modification can reduce system calls, minimize packet fragmentation to improve performance. Signed-off-by: Jianhui Zhao --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index ddb7319..a1e4a7c 100644 --- a/src/http.c +++ b/src/http.c @@ -104,7 +104,7 @@ static int ssl_negotiated(struct http_connection *conn) static void on_net_read(struct ev_loop *loop, struct ev_io *w, int revents) { struct http_connection *conn = container_of(w, struct http_connection, ior); - static uint8_t buf[1024 * 20]; + static uint8_t buf[1024 * 63]; int ret; #ifdef SSL_SUPPORT