Skip to content

Commit

Permalink
Merge pull request #2686 from jpmckinney/patch-1
Browse files Browse the repository at this point in the history
docs: gthread is a sync worker
  • Loading branch information
benoitc committed Oct 15, 2022
2 parents 00de6d9 + 9f159f7 commit 54c8beb
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/source/design.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
---------------

Expand All @@ -68,12 +77,6 @@ AsyncIO Workers

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
``aiohttp.worker.GunicornWebWorker`` worker.

Expand Down

0 comments on commit 54c8beb

Please sign in to comment.