mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #2686 from jpmckinney/patch-1
docs: gthread is a sync worker
This commit is contained in:
commit
54c8beb6ae
@ -53,6 +53,15 @@ installed and `setup <http://www.gevent.org/api/gevent.monkey.html#plugins>`_.
|
|||||||
Other applications might not be compatible at all as they, e.g., rely on
|
Other applications might not be compatible at all as they, e.g., rely on
|
||||||
the original unpatched behavior.
|
the original unpatched behavior.
|
||||||
|
|
||||||
|
Gthread Workers
|
||||||
|
---------------
|
||||||
|
|
||||||
|
The worker `gthread` is a threaded worker. It accepts connections in the
|
||||||
|
main loop. Accepted connections 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 happens after the keepalive timeout,
|
||||||
|
the connection is closed.
|
||||||
|
|
||||||
Tornado Workers
|
Tornado Workers
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
@ -68,12 +77,6 @@ AsyncIO Workers
|
|||||||
|
|
||||||
These workers are compatible with Python 3.
|
These workers are compatible with Python 3.
|
||||||
|
|
||||||
The worker `gthread` is a threaded worker. It accepts connections in the
|
|
||||||
main loop, accepted connections 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.
|
|
||||||
|
|
||||||
You can port also your application to use aiohttp_'s ``web.Application`` API and use the
|
You can port also your application to use aiohttp_'s ``web.Application`` API and use the
|
||||||
``aiohttp.worker.GunicornWebWorker`` worker.
|
``aiohttp.worker.GunicornWebWorker`` worker.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user