Revert "unix: replace magic number with UV_SPAWN_BUFFER_SIZE"

This reverts commit ef65ba57496975a75665a9affbd9da3ed55deecd.
This commit is contained in:
verycosy 2025-02-10 17:50:05 +09:00 committed by Colin Ihrig
parent 73770ceb52
commit 9b47f57a0b

View File

@ -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);