File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 12
12
host = "0.0.0.0" ,
13
13
port = 8080 ,
14
14
workers = cpus ,
15
- threads = 2 ,
16
- backlog = 2048 ,
15
+ backlog = 16384 ,
17
16
threading_mode = 'runtime' ,
18
17
enable_websockets = False ,
19
18
log_level = "warn"
Original file line number Diff line number Diff line change 1
1
asyncpg == 0.29.0
2
- granian >= 1.3.1 ,< 1.4 .0
2
+ granian >= 1.4.2 ,< 1.5 .0
3
3
jinja2 == 3.1.4
4
4
orjson == 3.10.2
Original file line number Diff line number Diff line change 10
10
workers = multiprocessing .cpu_count ()
11
11
if threading_mode == "workers" :
12
12
workers = round (workers / 2 )
13
- threads = 1
14
13
15
14
Granian (
16
15
f"app_{ interface } :main" ,
17
16
address = "0.0.0.0" ,
18
17
port = 8080 ,
19
18
workers = workers ,
20
19
threading_mode = threading_mode ,
21
- threads = threads ,
22
- backlog = 2048 ,
20
+ blocking_threads = 1 ,
21
+ backlog = 16384 ,
23
22
interface = interface ,
24
23
http = "1" ,
25
24
websockets = False
You can’t perform that action at this time.
0 commit comments