webserv's People
webserv's Issues
Fix inttostring
Fix inttostring, doesnt work when int n = 0.
Close connection with close header
If the request contains Connections: close , we're still keeping the connection open that. I dont think its mandated by the subject, but shouldnt be a difficult fix.
Request hangs after restart
When "restart" is called from the cli on a running server, requests hang and don't show up in the server output. If this is annoying to solve we can also remove the restart functionality because it's not part of the subject.
Server terminates when test gets SIGINT on last test
When running the last test Test multiple workers(20) doing multiple times(5): Post on /directory/youpi.bla with size 100000000, if you ctrl-c the tester after at least one POST req is done, the server also terminates
Unify status_code
Why do we have a variable for status_code in both the request struct and the ResponseHandler class? If possible we can merge this into one variable. If not, you can close this issue.
Check code for not allowed functions
Fix leaking fd
Not closing dir in handleAutoIndex
After using dir = readdir(), I think you need to call closedir(dir).
Serve error on 405 status
When we have a 405 status, we are not serving the error page, we are just handling it like its an allowed method which is wrong. I think this happens with invalid PUT requests.
Fix autoindex
There is a leak of 32k in handleAutoIndex, you can reproduce it by running valgrind ./webserv and then loading localhost:8080/css once. I tested in a Linux container to make sure Valgrind is working correctly.
Split Client class into its own files
Add another configfile for normal behaviour
Add signalhandler to the now working version
Fix autoindex not working
'wrong' put status codes
lets do it neatly, instead of never returning 201 and always 204.
Fix ALLOW header response
@pde-bakk Could you elaborate on this?
Fix handling bad request
Right now, if a bad or empty request comes in, we flag it as a status code 400 but don't do anything with this information. Therefore we are still calling responsehandler as if it were a valid request, but it ain't.
You can test this behaviour by siginting the 42tester. On my pc this even shuts down our server
Check if it's possible to read the entire request in one function call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.