1
0
mirror of synced 2025-04-19 00:24:02 +03:00
This commit is contained in:
yhirose 2025-04-17 11:52:22 -04:00
parent caf7c55785
commit 9589519d58

View File

@ -7329,8 +7329,9 @@ Server::process_request(Stream &strm, const std::string &remote_addr,
} }
// Setup `is_connection_closed` method // Setup `is_connection_closed` method
req.is_connection_closed = [&]() { auto sock = strm.socket();
return !detail::is_socket_alive(strm.socket()); req.is_connection_closed = [sock]() {
return !detail::is_socket_alive(sock);
}; };
// Routing // Routing