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:
LuckyLaszlo
2022-08-11 07:12:13 +02:00
parent 08f6929db9
commit ab0bc2c4c0
13 changed files with 139 additions and 38 deletions

View File

@@ -1,5 +1,4 @@
IN 42 SUBJECT AND/OR PRIORITY :
- Fix "href" in autoindex
- CGI
- chunked request (response not mandatory it seems)
- Ecrire des tests !
@@ -9,7 +8,6 @@ IN 42 SUBJECT AND/OR PRIORITY :
- replace atoi() with a better function to avoid overflow
like strtol : https://www32.cplusplus.com/reference/cstdlib/strtol/
-----------------------------
- 408 Request Timeout
- gerer le champ "Accept" du client
- gerer les ".." dans un URL (verifier que l'on ne sort pas du dossier "root")
- do correct handling of special character in url (/rfc2119_files/errata.js.t%C3%A9l%C3%A9chargement -> /rfc2119_files/errata.js.téléchargement)