summaryrefslogtreecommitdiff
path: root/src/detached/client.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-23 11:00:49 -0300
committerGabriel Schneider <[email protected]>2026-10-23 17:10:58 -0300
commitb8f076b63d6fcbb01539d5541520a32bccc0e219 (patch)
treea7ecf78a52b84f1ead885094540ed88cb4baa296 /src/detached/client.zig
parent0073d05329335dbb0eb85f5c3044e42805d144e5 (diff)
downloadpardes-b8f076b63d6fcbb01539d5541520a32bccc0e219.tar.gz
pardes-b8f076b63d6fcbb01539d5541520a32bccc0e219.zip
Audit: the hosts' wire on std.Io Reader/Writer, Lsp and selection_pipe deliver through a sink, std.Io clock and sleep
wire.zig reads and writes through std.Io.Reader/Writer instead of its own framing helpers; host_io.Lsp.start and selection_pipe.start take a callback sink, so each shell keeps no copy of the worker plumbing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/detached/client.zig')
-rw-r--r--src/detached/client.zig6
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,