Revert "unix: replace magic number with UV_SPAWN_BUFFER_SIZE"
This reverts commit ef65ba57496975a75665a9affbd9da3ed55deecd.
This commit is contained in:
parent
73770ceb52
commit
9b47f57a0b
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user