From 713cd4d971fd2fd73059cf812e76be2f06aeee22 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Mon, 25 Mar 2024 20:42:57 +0800 Subject: [PATCH] libuv: Make stream read buffer size configurable Signed-off-by: Huang Qi --- system/libuv/Kconfig | 4 ++++ system/libuv/Makefile | 1 + 2 files changed, 5 insertions(+) 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