From 0c4e6300ee3513d35b508d49e55fe7f5db431cf6 Mon Sep 17 00:00:00 2001 From: mikysett Date: Thu, 22 Sep 2022 16:35:36 +0100 Subject: [PATCH] feat(localhost): add clarity for I/O multiplexing --- subjects/localhost/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subjects/localhost/README.md b/subjects/localhost/README.md index 308461957..ac93f658e 100644 --- a/subjects/localhost/README.md +++ b/subjects/localhost/README.md @@ -22,7 +22,9 @@ Here you will learn the basics of the protocol and a good place to start could b - Your server should manage at least [`GET`, `POST`, `DELETE`] methods. - Your server should handle cookies and sessions. - You should create default error pages for at least the following error codes [400,403,404,405,413,500]. -- Your server should call `select` function (or equivalent function) one time only. +- Your server should call `select` function (or `poll` or equivalent) only once for each client/server communication. +- All reads and writes should pass by `select` or equivalent API. +- All I/O operations should be non-blocking. - You should manage chunked and unchunked requests. - You should set the right status for each response. @@ -128,6 +130,8 @@ The Main Rules : - Set a default file to answer if the request is a directory. - No need to manage comments "(#)". +> There is no need to pass through `poll` when reading the configuration file. + to check the syntax of the config file you must run this : ```console