mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
update doc for the new workers
This commit is contained in:
parent
c996deaf23
commit
0fee3e5db2
@ -49,6 +49,19 @@ There's also a Tornado worker class. It can be used to write applications using
|
|||||||
the Tornado framework. Although the Tornado workers are capable of serving a
|
the Tornado framework. Although the Tornado workers are capable of serving a
|
||||||
WSGI application, this is not a recommended configuration.
|
WSGI application, this is not a recommended configuration.
|
||||||
|
|
||||||
|
AsyncIO Workers
|
||||||
|
---------------
|
||||||
|
|
||||||
|
These workers are compatible with python3. You have two kind of workers.
|
||||||
|
|
||||||
|
The worker `gthread` is a threaded worker. It accepts connections in the
|
||||||
|
main loop, accepted connections are are added to the thread pool as a
|
||||||
|
connection job. On keepalive connections are put back in the loop
|
||||||
|
waiting for an event. If no event happen after the keep alive timeout,
|
||||||
|
the connection is closed.
|
||||||
|
|
||||||
|
The worker `gaiohttp` is a full asyncio worker using [aiohttp](https://github.com/KeepSafe/aiohttp).
|
||||||
|
|
||||||
Choosing a Worker Type
|
Choosing a Worker Type
|
||||||
======================
|
======================
|
||||||
|
|
||||||
|
|||||||
@ -396,7 +396,7 @@ temporary directory.
|
|||||||
secure_scheme_headers
|
secure_scheme_headers
|
||||||
~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
* ``{'X-FORWARDED-SSL': 'on', 'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https'}``
|
* ``{'X-FORWARDED-SSL': 'on', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-PROTOCOL': 'ssl'}``
|
||||||
|
|
||||||
A dictionary containing headers and values that the front-end proxy
|
A dictionary containing headers and values that the front-end proxy
|
||||||
uses to indicate HTTPS requests. These tell gunicorn to set
|
uses to indicate HTTPS requests. These tell gunicorn to set
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user