| ... | @@ -185,7 +185,6 @@ pub const Stream = struct { | ... | @@ -185,7 +185,6 @@ pub const Stream = struct { |
| 185 | while (total < count_actual) { | 185 | while (total < count_actual) { |
| 186 | const len = try sys.sendfile(@intCast(@intFromEnum(s.socket)), @intFromEnum(file.fd), &(offset + total), count_actual - total); | 186 | const len = try sys.sendfile(@intCast(@intFromEnum(s.socket)), @intFromEnum(file.fd), &(offset + total), count_actual - total); |
| 187 | total += @intCast(len); | 187 | total += @intCast(len); |
| 188 | if (len == 0) break; | | |
| 189 | } | 188 | } |
| 190 | } | 189 | } |
| 191 | | 190 | |