Align the buffer size of pipes and UNIX sockets

This commit is contained in:
Ruihan Li
2024-08-13 16:54:54 +08:00
committed by Tate, Hongliang Tian
parent f9bae1eee9
commit 8fdd22de8a
2 changed files with 2 additions and 2 deletions

View File

@ -122,4 +122,4 @@ impl Endpoint {
}
}
const DAFAULT_BUF_SIZE: usize = 4096;
const DAFAULT_BUF_SIZE: usize = 65536;

View File

@ -58,4 +58,4 @@ struct PipeFds {
writer_fd: FileDesc,
}
const PIPE_BUF_SIZE: usize = 1024 * 1024;
const PIPE_BUF_SIZE: usize = 65536;