Skip to content
Snippets Groups Projects
Commit 33bbb7c6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Decrease the web server default MaxClients value from unlimited to 100 clients

Every server should have *some* limit to protect against DOS attacks.
Every connected client consumes a socket, a thread, some memory, none of
which are infinite resources.
parent 00367608
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ typedef struct {
STARTUP_COMMON_ELEMENTS
uint16_t max_clients;
#define WEB_DEFAULT_MAX_CLIENTS 0 /* 0=unlimited */
#define WEB_DEFAULT_MAX_CLIENTS 100 /* 0=unlimited */
uint16_t max_inactivity;
#define WEB_DEFAULT_MAX_INACTIVITY 120 /* seconds */
uint16_t max_cgi_inactivity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment