u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

Make clientHeaderBufferSize configurable #48

Open gwolf-011235 opened 2 months ago

gwolf-011235 commented 2 months ago

What does Nginx do

  1. Nginx has the directive client_header_buffer_size which controls how big the buffer for the header part of a client request is.

  2. Nginx also has large_client_header_buffers as fallback if the normal buffer is too small. They are allocated and read into. There can be multiple large_client_header_buffers. If these buffers are also too small an error is sent to the client.

  3. Nginx picks the appropriate virtual server depending on the request: LINK. See also article How nginx processes a request At first it uses the default server, and with more information maybe another server configuration will be picked. This is done by checking the applicable server at different stages of request parsing: 3.1 during SSL handshake 3.2 after processing the request line 3.3 after processing the Host header field

Status quo

Thoughts for our implementation

Suggestion