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
Quinten
f3bdf28eed
refactor: implement socket structure and server refactor
2025-10-14 18:38:57 +02:00
Quinten
970ab847fc
refactor(server): refactor event loop
2025-10-14 15:25:04 +02:00
whaffman
b64a41d84f
feat: implement CGISocket class for handling CGI communication with non-blocking I/O
2025-10-10 11:03:20 +02:00
whaffman
f8a273ec84
moving docs, log files and iwyu map
2025-10-10 07:56:49 +02:00
whaffman
b43901de1a
moved scripts to script folder
2025-10-09 23:13:48 +02:00
whaffman
4614a2d382
moved sites to htdocs and ran format script
2025-10-09 22:57:31 +02:00
whaffman
fc1340ac7f
fix: tests update StdoutChannel and logging methods to remove unnecessary parameters
2025-10-09 22:28:08 +02:00
whaffman
9c343d872e
remove header, correct filename
2025-10-09 22:22:47 +02:00
whaffman
9faa5a1406
feat: enhance C++ development settings in VSCode configuration
2025-10-09 22:22:07 +02:00
whaffman
cc2ed7af56
fix errors from pedantic
2025-10-09 21:16:42 +02:00
whaffman
5215edbb45
add -Wpedantic and some friends
2025-10-09 21:16:30 +02:00