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 <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2025-06-23 11:32:17 +08:00
parent ed6600986f
commit b30f61d004

View File

@@ -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