diff --git a/docs/sanic/config.md b/docs/sanic/config.md index 5d0dc95a..c16e2397 100644 --- a/docs/sanic/config.md +++ b/docs/sanic/config.md @@ -85,13 +85,15 @@ DB_USER = 'appuser' Out of the box there are just a few predefined values which can be overwritten when creating the application. - | Variable | Default | Description | - | ------------------ | --------- | --------------------------------------------- | - | REQUEST_MAX_SIZE | 100000000 | How big a request may be (bytes) | - | REQUEST_TIMEOUT | 60 | How long a request can take to arrive (sec) | - | RESPONSE_TIMEOUT | 60 | How long a response can take to process (sec) | - | KEEP_ALIVE | True | Disables keep-alive when False | - | KEEP_ALIVE_TIMEOUT | 5 | How long to hold a TCP connection open (sec) | + | Variable | Default | Description | + | ------------------------- | --------- | ------------------------------------------------------ | + | REQUEST_MAX_SIZE | 100000000 | How big a request may be (bytes) | + | REQUEST_TIMEOUT | 60 | How long a request can take to arrive (sec) | + | RESPONSE_TIMEOUT | 60 | How long a response can take to process (sec) | + | KEEP_ALIVE | True | Disables keep-alive when False | + | KEEP_ALIVE_TIMEOUT | 5 | How long to hold a TCP connection open (sec) | + | GRACEFUL_SHUTDOWN_TIMEOUT | 15.0 | How long take to force close non-idle connection (sec) | + | ACCESS_LOG | True | Disable or enable access log | ### The different Timeout variables: diff --git a/sanic/server.py b/sanic/server.py index 17529a32..5668c5c4 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -544,6 +544,8 @@ def serve(host, port, request_handler, error_handler, before_start=None, quarter of the high-water limit. :param is_request_stream: disable/enable Request.stream :param router: Router object + :param graceful_shutdown_timeout: How long take to Force close non-idle + connection :return: Nothing """ if not run_async: