add epoll to main thread

This commit is contained in:
2025-08-04 22:13:25 +02:00
parent 770ffa5d9e
commit bb9b66d077
4 changed files with 74 additions and 11 deletions

View File

@@ -213,6 +213,7 @@ void cws_http_send_response(cws_http *request, cws_http_status status) {
}
int cws_http_send_resource(cws_http *request) {
/* keep-alive by default */
int keepalive = 1;
FILE *file = fopen(mcl_string_cstr(request->location_path), "rb");