Always monitor the CDP client socket, even on page.wait

This commit is contained in:
Karl Seguin
2025-09-02 19:45:49 +08:00
parent a791212d89
commit 2ac9b2088a
6 changed files with 54 additions and 24 deletions

View File

@@ -126,8 +126,12 @@ pub const Server = struct {
var last_message = timestamp();
var http = &self.app.http;
http.monitorSocket(socket);
defer http.unmonitorSocket();
while (true) {
if (http.poll(20, socket)) {
if (http.poll(10) == .extra_socket) {
const n = posix.read(socket, client.readBuf()) catch |err| {
log.warn(.app, "CDP read", .{ .err = err });
return;