Commit Graph

331 Commits

Author SHA1 Message Date
Quinten
9358370044 extend validation logic 2025-10-27 09:25:26 +01:00
Quinten
d8a89c3814 i think this is nicer, wby? 2025-10-26 19:18:26 +01:00
Quinten
4cf3eac4d1 feat: request validation 2025-10-26 19:18:11 +01:00
whaffman
d98fb98c52 iwyu 2025-10-26 13:43:42 +01:00
whaffman
5e9243b064 feat(SIGTERM) is this not to global for you sir? 2025-10-26 12:10:17 +01:00
Quinten
be39dfa4c4 no extensions cmake 2025-10-22 16:52:16 +02:00
Quinten
ce67805e1b feat: auto close fds on exec 2025-10-22 16:51:58 +02:00
Quinten
c712cbf6db refactor(log): remove mode and clear channels function 2025-10-22 16:51:32 +02:00
Quinten
c49b259862 refactor: no cancel timer 2025-10-22 15:37:13 +02:00
Quinten
728638b1e4 feat(config): add direcive for timeout 2025-10-22 15:37:00 +02:00
Quinten
11687b1782 fix(file utils): allow empty addition 2025-10-22 15:36:42 +02:00
Quinten
176864f35c fix(client): remove sockets on client destruct 2025-10-22 15:36:26 +02:00
whaffman
656abd24e7 feat(CgiHandler, TimerSocket): enhance error handling and add read/write methods 2025-10-22 15:18:15 +02:00
whaffman
cd33bb1ce6 refactor(CgiProcess): update TODO comment for pipe handling to improve clarity 2025-10-21 23:47:21 +02:00
Quinten
e7e913a32d timeout, but please refactor yes thankyou 2025-10-21 22:17:17 +02:00
whaffman
c148636b1e fix(CgiHandler, CgiProcess): improve socket management by adding stderr socket handling 2025-10-21 19:03:40 +02:00
whaffman
7eba0b38a2 Merge remote-tracking branch 'origin/feature/socket-refactor' into willem2 2025-10-21 19:03:32 +02:00
Quinten
053c167574 feat(dev container): add php cgi to build requirements 2025-10-21 16:55:28 +02:00
Quinten
cfb88745bb refactor(Client, Server, ASocket): update socket handling and state management 2025-10-21 16:55:11 +02:00
whaffman
bf36dd74d8 Cgi stderr 2025-10-21 15:37:45 +02:00
whaffman
7951478edf minimal fix for segfault 2025-10-21 15:11:39 +02:00
whaffman
6028e0c1fe remove compile flags 2025-10-21 13:24:22 +02:00
whaffman
eedb5382ea fix(URI): trim URI before extracting substring for improved path handling 2025-10-20 17:56:56 +02:00
whaffman
8dc20a5715 fix(HttpRequest): add TODO for potential segfault when server does not exist 2025-10-20 17:56:18 +02:00
whaffman
6cf0f73ee4 cookies 2025-10-20 16:15:07 +02:00
whaffman
d1b392d2a2 match index in URI 2025-10-20 15:33:55 +02:00
whaffman
ed04838f0d feat(Cgi Environment) fix(No function used in process can log or print is will print to the std o that is captured) 2025-10-20 15:27:08 +02:00
whaffman
0d57ce4f27 trying to setup tester weird stufffff 2025-10-19 14:22:00 +02:00
whaffman
0c081bbb2c feat: cgi headers: enhance CGI handling with output parsing and buffer management 2025-10-19 13:54:19 +02:00
whaffman
60405f03d5 feat: implement CGI process management with wait and kill functionality 2025-10-17 16:28:04 +02:00
whaffman
b8e3e16f3d refactoring ahndler, and cgihandler start 2025-10-16 17:10:32 +02:00
whaffman
a8dd8a77a5 error response 2025-10-16 14:52:25 +02:00
whaffman
3370c53d3e style: format function parameters for better readability 2025-10-16 01:15:38 +02:00
whaffman
377ff71e1e fix: improve error handling for size directive and chunked body parsing 2025-10-16 01:14:54 +02:00
whaffman
67ab96f9da refactor: add noexcept annotations to getters and observers 2025-10-16 00:54:29 +02:00
whaffman
5efc48ff74 probably useless chore: update clang-tidy checks to include noexcept-related rules 2025-10-16 00:39:16 +02:00
whaffman
259d7f1371 more no except and const 2025-10-16 00:38:55 +02:00
Quinten
7432cd154c fix: handle epollhup properly 2025-10-15 20:06:57 +02:00
Quinten
2d6543fb5a refactor(Server): remove unnecessary sleep in run loop 2025-10-15 18:42:01 +02:00
Quinten
d562c5bcbf feat: CGI 2025-10-15 18:34:42 +02:00
Quinten
e1be8d8aa8 feat(socket): implement callbacks for asynchronous handling of requests and responses 2025-10-15 17:29:22 +02:00
Quinten
0887acd81a feat(config): add new server configuration for site-3 and implement CGI support
feat(site-3): create index.php for site-3 with a greeting message
refactor(client): change setCgiSocket to accept unique_ptr for better memory management
fix(AConfig): adjust getCGIPath to correctly prepend dot to extension
refactor(CgiProcess): update CGI process handling to use unique_ptr for CgiSocket
refactor(URI): enhance logging for CGI checks and improve condition checks
refactor(Router): clean up commented code and add debug logging for CGI process
fix(Server): improve error logging for epoll_ctl failures
2025-10-15 17:03:49 +02:00
Quinten
7134e26f6f refactor: make response async 2025-10-15 15:28:09 +02:00
whaffman
35432729dc refactor(ADirective, HttpHeaders, HttpRequest, Server, Socket): improve code structure and readability 2025-10-14 22:43:02 +02:00
whaffman
9bacc4f8a4 fix(main): correct error logging to standard error output for usage message 2025-10-14 22:20:55 +02:00
whaffman
f172987e63 feat(AConfig, URI): add getCGIPath method and implement CGI check in URI 2025-10-14 22:11:34 +02:00
whaffman
42daf68ee2 refactor(DirectiveValue): add TODO comment for constructor 2025-10-14 22:11:12 +02:00
Quinten
9b7f50cc04 refactor(Client): improve error handling in request method and clean up includes 2025-10-14 19:10:27 +02:00
Quinten
68ea191460 refactor: remove unused Router references from Client and Server classes 2025-10-14 19:02:49 +02:00
whaffman
3a95041815 formating 2025-10-14 18:47:09 +02:00