Fossil SCM
Replicated the server load aveage limit on the robot-defenses configuration page.
Commit
a72e9e181dd79d3f92cf99b0fb207fae7131b1f9f27da0d180d1f26b04ea9fb3
Parent
67094bc2992b776…
1 file changed
+13
+13
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -413,10 +413,23 @@ | ||
| 413 | 413 | @ <form action="%R/setup_robot" method="post"><div> |
| 414 | 414 | login_insert_csrf_secret(); |
| 415 | 415 | @ <input type="submit" name="submit" value="Apply Changes"></p> |
| 416 | 416 | @ <hr> |
| 417 | 417 | addAutoHyperlinkSettings(); |
| 418 | + | |
| 419 | + @ <hr> | |
| 420 | + entry_attribute("Server Load Average Limit", 11, "max-loadavg", "mxldavg", | |
| 421 | + "0.0", 0); | |
| 422 | + @ <p>Some expensive operations (such as computing tarballs, zip archives, | |
| 423 | + @ or annotation/blame pages) are prohibited if the load average on the host | |
| 424 | + @ computer is too large. Set the threshold for disallowing expensive | |
| 425 | + @ computations here. Set this to 0.0 to disable the load average limit. | |
| 426 | + @ This limit is only enforced on Unix servers. On Linux systems, | |
| 427 | + @ access to the /proc virtual filesystem is required, which means this limit | |
| 428 | + @ might not work inside a chroot() jail. | |
| 429 | + @ (Property: "max-loadavg")</p> | |
| 430 | + | |
| 418 | 431 | @ <hr> |
| 419 | 432 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 420 | 433 | @ </div></form> |
| 421 | 434 | db_end_transaction(0); |
| 422 | 435 | style_finish_page(); |
| 423 | 436 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -413,10 +413,23 @@ | |
| 413 | @ <form action="%R/setup_robot" method="post"><div> |
| 414 | login_insert_csrf_secret(); |
| 415 | @ <input type="submit" name="submit" value="Apply Changes"></p> |
| 416 | @ <hr> |
| 417 | addAutoHyperlinkSettings(); |
| 418 | @ <hr> |
| 419 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 420 | @ </div></form> |
| 421 | db_end_transaction(0); |
| 422 | style_finish_page(); |
| 423 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -413,10 +413,23 @@ | |
| 413 | @ <form action="%R/setup_robot" method="post"><div> |
| 414 | login_insert_csrf_secret(); |
| 415 | @ <input type="submit" name="submit" value="Apply Changes"></p> |
| 416 | @ <hr> |
| 417 | addAutoHyperlinkSettings(); |
| 418 | |
| 419 | @ <hr> |
| 420 | entry_attribute("Server Load Average Limit", 11, "max-loadavg", "mxldavg", |
| 421 | "0.0", 0); |
| 422 | @ <p>Some expensive operations (such as computing tarballs, zip archives, |
| 423 | @ or annotation/blame pages) are prohibited if the load average on the host |
| 424 | @ computer is too large. Set the threshold for disallowing expensive |
| 425 | @ computations here. Set this to 0.0 to disable the load average limit. |
| 426 | @ This limit is only enforced on Unix servers. On Linux systems, |
| 427 | @ access to the /proc virtual filesystem is required, which means this limit |
| 428 | @ might not work inside a chroot() jail. |
| 429 | @ (Property: "max-loadavg")</p> |
| 430 | |
| 431 | @ <hr> |
| 432 | @ <p><input type="submit" name="submit" value="Apply Changes"></p> |
| 433 | @ </div></form> |
| 434 | db_end_transaction(0); |
| 435 | style_finish_page(); |
| 436 |