From 9b47f57a0b237a3766f7fd16c83d504b9ef83866 Mon Sep 17 00:00:00 2001 From: verycosy Date: Mon, 10 Feb 2025 17:50:05 +0900 Subject: [PATCH] Revert "unix: replace magic number with UV_SPAWN_BUFFER_SIZE" This reverts commit ef65ba57496975a75665a9affbd9da3ed55deecd. --- src/unix/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/stream.c b/src/unix/stream.c index 194dfba0..18763b47 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -1049,7 +1049,7 @@ static void uv__read(uv_stream_t* stream) { assert(stream->alloc_cb != NULL); buf = uv_buf_init(NULL, 0); - stream->alloc_cb((uv_handle_t*)stream, UV_SPAWN_BUFFER_SIZE, &buf); + stream->alloc_cb((uv_handle_t*)stream, 64 * 1024, &buf); if (buf.base == NULL || buf.len == 0) { /* User indicates it can't or won't handle the read. */ stream->read_cb(stream, UV_ENOBUFS, &buf);