diff options
Diffstat (limited to 'src/detached/client.zig')
| -rw-r--r-- | src/detached/client.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/detached/client.zig b/src/detached/client.zig index 60950208..cd17871e 100644 --- a/src/detached/client.zig +++ b/src/detached/client.zig @@ -165,7 +165,7 @@ pub const Client = struct { _ = libc.close(fd); return error.NoSession; } - server.setNonblock(fd); + _ = server.setNonblock(fd); var c: Client = .{ .gpa = gpa, .fd = fd }; errdefer c.deinit(); try c.send(.{ .hello = .{ @@ -225,7 +225,7 @@ pub const Client = struct { // next flush: the session decodes it as a message, refuses it, and // drops a frontend whose only mistake was a message this protocol // cannot carry (an `Event.command` past 64 KiB is `Overlong`, and a - // caller that mis-sized the queue is `NoSpace`). + // caller that mis-sized the queue is `WriteFailed`). c.out.items.len = at; return err; }; @@ -1201,7 +1201,7 @@ test "detached session: a frontend is never asked to fork, write, or watch" { for (0..256) |i| { const tag: u8 = @intCast(i); // Payloads are deliberately empty: what is asked is whether the TAG is - // known, and every known tag fails later (`Truncated`) or succeeds, but + // known, and every known tag fails later (`EndOfStream`) or succeeds, but // never with `BadTag`. if (wire.decodeServer(tag, &.{})) |_| accepted += 1 else |err| switch (err) { error.BadTag => continue, |
