fn handleClientThread(parent_allocator: std.mem.Allocator, connection: std.net.Server.Connection) void {
handleClient(parent_allocator, connection) catch |err| {
- switch (err) {
- error.HttpConnectionClosing => std.log.info("Client {} disconnected.", .{connection.address}),
- else => std.log.err("Client {} errored with code {}", .{ connection.address, err }),
- }
+ std.log.err("Client {} errored with code {}", .{ connection.address, err });
+ return;
};
+
+ std.log.info("Client {} disconnected.", .{connection.address});
}
pub fn main() !void {