From 7c835a89046cf1da8b98ec5986ca61b6308270c5 Mon Sep 17 00:00:00 2001 From: agaley Date: Thu, 29 Aug 2024 15:13:31 +0200 Subject: [PATCH] Clean --- .gitmodules | 3 --- README.md | 14 +++++++++++++- TODO | 8 -------- html-website-templates | 1 - siegeurls.txt | 5 ----- src/Worker.cpp | 1 - 6 files changed, 13 insertions(+), 19 deletions(-) delete mode 100644 .gitmodules delete mode 100644 TODO delete mode 160000 html-website-templates delete mode 100644 siegeurls.txt diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 0595242..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "html-website-templates"] - path = html-website-templates - url = https://github.com/designmodo/html-website-templates.git diff --git a/README.md b/README.md index 4a00e43..4913719 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,14 @@ # webserv -Simple http/1.1 (bis) server implemented in c++ for 42 school cursus +C++ epoll-based multi-threaded http/1.1 server with cgi and caching + +## Option 1 : Local run +``` +make +./webserv local.conf +``` + +## Option 2 : Docker run +`make run` ## RFC : [Résumé des différents documents de la RFC](doc/RFC.md) @@ -16,3 +25,6 @@ Simple http/1.1 (bis) server implemented in c++ for 42 school cursus 3. Usage - manual - Format all files : `find . -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -o -name "*.tpp" | xargs clang-format -i` - Static analysis : `find . -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -o -name "*.tpp" | xargs clang-tidy -config=.clang-tidy` + + +42Lyon diff --git a/TODO b/TODO deleted file mode 100644 index df45431..0000000 --- a/TODO +++ /dev/null @@ -1,8 +0,0 @@ -- TIMEOUT: alex -- cache: a & mat -- errno on accept: mat ok -- test cross sieges (multiple socket): mat ok -- Because you won’t call the CGI directly, use the full path as PATH_INFO: alex -- Just remember that, for chunked request, your server needs to unchunk it, the CGI will expect EOF as end of the body: (on verra) -- Same things for the output of the CGI. If no content_length is returned from the CGI, EOF will mark the end of the returned data: mat ok -- The CGI should be run in the correct directory for relative path file access: alex diff --git a/html-website-templates b/html-website-templates deleted file mode 160000 index e4373e5..0000000 --- a/html-website-templates +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e4373e54cede46b6ff6469ae672e9e09d2f221b9 diff --git a/siegeurls.txt b/siegeurls.txt deleted file mode 100644 index 4f1e1a1..0000000 --- a/siegeurls.txt +++ /dev/null @@ -1,5 +0,0 @@ -http://localhost:8080/ -http://localhost:8090/ -http://localhost:8091/ -http://localhost:8092/ -http://localhost:8093/ diff --git a/src/Worker.cpp b/src/Worker.cpp index 860e9d9..6701038 100644 --- a/src/Worker.cpp +++ b/src/Worker.cpp @@ -169,7 +169,6 @@ void Worker::_acceptNewConnection(int fd) { close(new_socket); delete handler; delete eventData; - // continue; } } }