libuv: Make stream read buffer size configurable

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2024-03-25 20:42:57 +08:00 committed by GUIDINGLI
parent 1ddeaa1468
commit 713cd4d971
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,10 @@ config LIBUV_THREADPOOL_PRIORITY
int "libuv default thread pool priority"
default 100
config LIBUV_STREAM_READ_BUF_SIZE
int "libuv stream read buffer size"
default 4096
config LIBUV_BACKEND_EPOLL
bool "Using epoll backend in libuv"
default y

View File

@ -53,6 +53,7 @@ CFLAGS += -DDEF_THREADPOOL_STACKSIZE=CONFIG_LIBUV_THREAD_STACKSIZE
CFLAGS += -DDEF_THREADPOOL_PRIORITY=CONFIG_LIBUV_THREADPOOL_PRIORITY
CFLAGS += -DMAX_EPOLL_EVENTS=CONFIG_LIBUV_MAX_EPOLL_EVENTS
CFLAGS += -DPREP_EVENT_SIZE=CONFIG_LIBUV_PREP_EVENT_SIZE
CFLAGS += -DDEF_STREAM_READ_BUF_SIZE=CONFIG_LIBUV_STREAM_READ_BUF_SIZE
ifeq ($(shell expr "$(GCCVER)" \>= 12), 1)
CFLAGS += -Wno-dangling-pointer