From d53f05b8dd7e5eac05ef144cb044b87e6c3f7b54 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 12 Aug 2026 01:14:06 -0700 Subject: [PATCH] Stream.sendfile: remove len==0 check, this is only done in nio on read methods --- net.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/net.zig b/net.zig index 8cc99d2ebb6fee798f9e075b85bdfabca25539d9..ee72fdaa7238afdb447a2d4d4ba8831dd50a3e3e 100644 --- a/net.zig +++ b/net.zig @@ -185,7 +185,6 @@ pub const Stream = struct { while (total < count_actual) { const len = try sys.sendfile(@intCast(@intFromEnum(s.socket)), @intFromEnum(file.fd), &(offset + total), count_actual - total); total += @intCast(len); - if (len == 0) break; } } -- 2.54.0