Skip to content

Commit

Permalink
Merge branch 'toby-sullivan-hs-disable-sendfile-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Apr 30, 2015
2 parents 2e0eb07 + 11ee135 commit 5c98b3d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gunicorn/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5c98b3d

Please sign in to comment.