refactor(readme): update
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user