mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user