refactor(readme): update

This commit is contained in:
2025-10-26 18:52:59 +01:00
parent 216fc0f62d
commit 58817dde9f
2 changed files with 5 additions and 6 deletions

View File

@@ -38,11 +38,10 @@ And then open the `docs/html/index.html`.
## Future ## Future
- Custom web pages (404) - Custom web pages (404)
- IPv6 compatible - Logging to file
- Multithreading to handle concurrent requests
- Logging
- Compression (Gzip)
- Reverse proxy - Reverse proxy
- IPv6 compatible
- Compression (Gzip)
- PHP-FPM - PHP-FPM
## Performance ## Performance

View File

@@ -35,7 +35,7 @@ static int cws_server_handle_client_data(int epfd, int client_fd) {
return CWS_SERVER_OK; return CWS_SERVER_OK;
} }
if (total_bytes <= 0) { if (total_bytes < 0) {
/* Something happened, close connection */ /* Something happened, close connection */
string_free(data); string_free(data);
cws_server_close_client(epfd, client_fd); cws_server_close_client(epfd, client_fd);
@@ -54,7 +54,7 @@ static int cws_server_handle_client_data(int epfd, int client_fd) {
cws_http_send_response(request, HTTP_OK); cws_http_send_response(request, HTTP_OK);
cws_http_free(request); cws_http_free(request);
cws_server_close_client(epfd, client_fd); // cws_server_close_client(epfd, client_fd);
return CWS_SERVER_OK; return CWS_SERVER_OK;
} }