mirror of
https://git.robbyzambito.me/zits
synced 2026-02-04 03:34:48 +00:00
Use much higher buffer sizes
This commit is contained in:
@@ -447,9 +447,11 @@ fn unsubscribe(
|
||||
/// Try to match the kernel socket buffers to maximize
|
||||
/// the amount of data we push through each syscall.
|
||||
fn getBufferSizes(io: Io) @Tuple(&.{ usize, usize }) {
|
||||
const default_size = 8 * 1024 * 1024;
|
||||
const default_size = 128 * 1024 * 1024;
|
||||
const default = .{ default_size, default_size };
|
||||
|
||||
if (true) return default;
|
||||
|
||||
const dir = Dir.openDirAbsolute(io, "/proc/sys/net/core", .{}) catch {
|
||||
log.warn("couldn't open /proc/sys/net/core", .{});
|
||||
return default;
|
||||
|
||||
Reference in New Issue
Block a user