Skip to content

Commit 31ef34b

Browse files
authored
[Python] Bump granian to 1.4 (#9111)
* [Python] Bump granian to 1.4 * [Python] Update Emmett server params
1 parent d5d45b1 commit 31ef34b

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

frameworks/Python/emmett/run.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
host="0.0.0.0",
1313
port=8080,
1414
workers=cpus,
15-
threads=2,
16-
backlog=2048,
15+
backlog=16384,
1716
threading_mode='runtime',
1817
enable_websockets=False,
1918
log_level="warn"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
asyncpg==0.29.0
2-
granian>=1.3.1,<1.4.0
2+
granian>=1.4.2,<1.5.0
33
jinja2==3.1.4
44
orjson==3.10.2

frameworks/Python/granian/run.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@
1010
workers = multiprocessing.cpu_count()
1111
if threading_mode == "workers":
1212
workers = round(workers / 2)
13-
threads = 1
1413

1514
Granian(
1615
f"app_{interface}:main",
1716
address="0.0.0.0",
1817
port=8080,
1918
workers=workers,
2019
threading_mode=threading_mode,
21-
threads=threads,
22-
backlog=2048,
20+
blocking_threads=1,
21+
backlog=16384,
2322
interface=interface,
2423
http="1",
2524
websockets=False

0 commit comments

Comments
 (0)