diff --git a/system/libuv/Kconfig b/system/libuv/Kconfig index 718a7824a..cfa1c6c6e 100644 --- a/system/libuv/Kconfig +++ b/system/libuv/Kconfig @@ -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 diff --git a/system/libuv/Makefile b/system/libuv/Makefile index 1bc7e7fe2..5adc1f8d7 100644 --- a/system/libuv/Makefile +++ b/system/libuv/Makefile @@ -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