Replace epoll to poll

This commit is contained in:
Nikolay Govorov
2026-03-04 19:59:22 +00:00
parent dd1c758c0e
commit 98124e97aa
2 changed files with 58 additions and 80 deletions

View File

@@ -133,9 +133,8 @@ pub fn run(self: *Server, address: net.Address, timeout_ms: u32) !void {
try runtime.add(listener, Net.Runtime.READABLE, &accept_ctx, onListenerEvent);
defer runtime.remove(listener);
runtime.run(self, shouldStopRuntime) catch |err| switch (err) {
error.UnsupportedPlatform => return err,
else => return err,
runtime.run(self, shouldStopRuntime) catch |err| {
return err;
};
log.info(.app, "server stopped", .{});