Skip to content

Commit

Permalink
Merge pull request #2295 from pi-hole/fix/restart_threads
Browse files Browse the repository at this point in the history
Restart FTL on change of webserver.threads
  • Loading branch information
DL6ER authored Feb 26, 2025
2 parents a0e4cc9 + f51f481 commit 3158465
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ static void initConfig(struct config *conf)
conf->webserver.threads.k = "webserver.threads";
conf->webserver.threads.h = "Maximum number of worker threads allowed.\n The Pi-hole web server handles each incoming connection in a separate thread. Therefore, the value of this option is effectively the number of concurrent HTTP connections that can be handled. Any other connections are queued until they can be processed by a unoccupied thread.\n The default value of 0 means that the number of threads is automatically determined by the number of online CPU cores minus 1 (e.g., launching up to 8-1 = 7 threads on 8 cores). Any other value specifies the number of threads explicitly. A hard-coded maximum of 64 threads is enforced for this option.\n The total number of threads you see may be lower than the configured value as threads are only created when needed due to incoming connections.";
conf->webserver.threads.t = CONF_UINT;
conf->webserver.threads.f = FLAG_RESTART_FTL;
conf->webserver.threads.d.ui = 0;
conf->webserver.threads.c = validate_stub; // Only type-based checking

Expand Down

0 comments on commit 3158465

Please sign in to comment.