authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-12 01:14:06-07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-08-12 01:14:06-07:00
logd53f05b8dd7e5eac05ef144cb044b87e6c3f7b54
treedcf0de6c9cfbe1e5235c73628b72768214f4b227
parentb4fd3a83d489d1ffe981733ed9b43746c0d64165
signature Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

Stream.sendfile: remove len==0 check, this is only done in nio on read methods


1 files changed, 0 insertions(+), 1 deletions(-)

net.zig-1
......@@ -185,7 +185,6 @@ pub const Stream = struct {
185185 while (total < count_actual) {
186186 const len = try sys.sendfile(@intCast(@intFromEnum(s.socket)), @intFromEnum(file.fd), &(offset + total), count_actual - total);
187187 total += @intCast(len);
188 if (len == 0) break;
189188 }
190189 }
191190