From c152ce0dd0b8af427455f877f154ecbcac0271c1 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Mon, 20 Oct 2014 20:17:30 +0300 Subject: [PATCH] Add a versionadded directive to the sendfile documentation. --- docs/source/settings.rst | 10 ++++++++++ gunicorn/config.py | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/source/settings.rst b/docs/source/settings.rst index 9b2f1763..077746ea 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -293,6 +293,16 @@ speed up server boot times. Although, if you defer application loading to each worker process, you can reload your application code easily by restarting workers. +sendfile +~~~~~~~~ + +* ``--sendfile`` +* ``True`` + +Enables or disables the use of ``sendfile()``. + +.. versionadded:: 19.2 + chdir ~~~~~ diff --git a/gunicorn/config.py b/gunicorn/config.py index d898ce83..387b8c9d 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -824,7 +824,9 @@ class Sendfile(Setting): action = "store_true" default = True desc = """\ - Enables or disables the use of sendfile(). + Enables or disables the use of ``sendfile()``. + + .. versionadded:: 19.2 """ class Chdir(Setting):