Skip to content

Commit 356f7a8

Browse files
committed
Tweak gunicorn
Signed-off-by: Anuraag Agrawal <[email protected]>
1 parent 3709f9a commit 356f7a8

File tree

3 files changed

+136
-4
lines changed

3 files changed

+136
-4
lines changed

conformance/test/server.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,12 @@ async def serve_gunicorn(
531531
cafile: str | None,
532532
port_future: asyncio.Future[int],
533533
):
534-
args = ["--bind=127.0.0.1:0", "--threads=40", "--reuse-port", "--keepalive=30"]
534+
args = [
535+
"--bind=127.0.0.1:0",
536+
"--workers=8",
537+
"--worker-class=gevent",
538+
"--reuse-port",
539+
]
535540
if certfile:
536541
args.append(f"--certfile={certfile}")
537542
if keyfile:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dev = [
4343
"httpx[http2]==0.28.1",
4444
"hypercorn==0.17.3",
4545
"granian==2.5.7",
46-
"gunicorn==23.0.0",
46+
"gunicorn[gevent]==23.0.0",
4747
"just-bin==1.42.4; sys_platform != 'win32'",
4848
"mkdocs==1.6.1",
4949
"mkdocs-material==9.6.20",

0 commit comments

Comments
 (0)