From 5807ea51bde7ec2a34de5b5ffcffacf9c4d2dec9 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 15 May 2023 09:21:02 +0200 Subject: [PATCH] BrokenPipe is now considered as a disconnection. --- src/context.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.zig b/src/context.zig index 2250187..1aa643a 100644 --- a/src/context.zig +++ b/src/context.zig @@ -505,7 +505,7 @@ pub const Context = struct { error.BrokenPipe => { log.warn("cannot send message, dest probably closed the connection ({})", .{err}); try self.close(i); - return Event.init(Event.Type.ERROR, i, fd.fd, null); + return Event.init(Event.Type.DISCONNECTION, i, fd.fd, null); }, else => { log.warn("unmanaged error while sending a message ({})", .{err});