Run cdp client on dedicated thread

This commit is contained in:
Nikolay Govorov
2026-02-17 15:07:08 +00:00
parent b4a40f1257
commit 424deb8faf

View File

@@ -119,7 +119,8 @@ pub fn run(self: *Server, address: net.Address, timeout_ms: u32) !void {
return error.ShuttingDown; return error.ShuttingDown;
} }
self.handleConnection(socket, timeout_ms); const thread = try std.Thread.spawn(.{}, handleConnection, .{ self, socket, timeout_ms });
thread.join();
} }
} }