Coder Social home page Coder Social logo

webserv's People

Contributors

pde-bakk avatar skrtks avatar tuan9999 avatar

Watchers

 avatar  avatar  avatar

webserv's Issues

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.

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.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.