Merge branch 'toby-sullivan-hs-disable-sendfile-fix'

This commit is contained in:
Randall Leeds 2015-04-29 17:40:50 -07:00
commit 5c98b3deb2

View File

@ -820,14 +820,16 @@ class PreloadApp(Setting):
class Sendfile(Setting):
name = "sendfile"
section = "Server Mechanics"
cli = ["--sendfile"]
cli = ["--no-sendfile"]
validator = validate_bool
action = "store_true"
action = "store_false"
default = True
desc = """\
Enables or disables the use of ``sendfile()``.
Disables the use of ``sendfile()``.
.. versionadded:: 19.2
.. versionchanged:: 19.4
Swapped --sendfile with --no-sendfile to actually allow disabling
"""
class Chdir(Setting):