added timeout response (status 408)
+ added EPOLLERR and EPOLLHUP handling + fix root substitution for default "/" location (temp or permanent ?) + tested siege a little, seems good
This commit is contained in:
@@ -21,7 +21,7 @@ void Webserv::_response(Client *client)
|
||||
}
|
||||
else if (ret == SEND_COMPLETE)
|
||||
{
|
||||
if (client->get_rq_headers("Connection") == "close")
|
||||
if (client->get_rq_headers("Connection") == "close" || client->status == 408)
|
||||
_close_client(client->get_cl_fd());
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user