From 141a8f3d773fe99b0df4746a8379c06082c90ae3 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Fri, 12 Nov 2021 13:03:20 -0500 Subject: [PATCH 1/2] docs: gthread is a sync worker --- docs/source/design.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/design.rst b/docs/source/design.rst index 066fceaf..0d545449 100644 --- a/docs/source/design.rst +++ b/docs/source/design.rst @@ -38,6 +38,12 @@ applications are programmed. closed after response has been sent (even if you manually add ``Keep-Alive`` or ``Connection: keep-alive`` header in your application). +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. + Async Workers ------------- @@ -68,12 +74,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. From 9f159f7cb6653ea77f079dcdf7310c901273312f Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Fri, 16 Sep 2022 15:15:19 -0400 Subject: [PATCH 2/2] docs: Add section for Gthread workers --- docs/source/design.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/source/design.rst b/docs/source/design.rst index 0d545449..50f835b2 100644 --- a/docs/source/design.rst +++ b/docs/source/design.rst @@ -38,12 +38,6 @@ applications are programmed. closed after response has been sent (even if you manually add ``Keep-Alive`` or ``Connection: keep-alive`` header in your application). -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. - Async Workers ------------- @@ -59,6 +53,15 @@ installed and `setup `_. 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 ---------------