Skip to content

Commit

Permalink
perf: increase read buf to 20KB for http proxy
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Nov 22, 2024
1 parent ca5207b commit 2e87a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
uint8_t buf[4096];
static uint8_t buf[1024 * 20];
int ret;

#ifdef SSL_SUPPORT
Expand Down

0 comments on commit 2e87a1a

Please sign in to comment.