| ... | @@ -1207,6 +1207,7 @@ const VecPut = struct { | ... | @@ -1207,6 +1207,7 @@ const VecPut = struct { |
| 1207 | /// Returns the amount actually put which is always equal to bytes.len | 1207 | /// Returns the amount actually put which is always equal to bytes.len |
| 1208 | /// unless the vectors ran out of space. | 1208 | /// unless the vectors ran out of space. |
| 1209 | fn put(vp: *VecPut, bytes: []const u8) usize { | 1209 | fn put(vp: *VecPut, bytes: []const u8) usize { |
| | 1210 | if (vp.idx >= vp.iovecs.len) return 0; |
| 1210 | var bytes_i: usize = 0; | 1211 | var bytes_i: usize = 0; |
| 1211 | while (true) { | 1212 | while (true) { |
| 1212 | const v = vp.iovecs[vp.idx]; | 1213 | const v = vp.iovecs[vp.idx]; |