mirror of
https://github.com/emmett-framework/granian.git
synced 2025-08-04 08:58:21 +00:00
Disable loop optimizations by default (#86)
This commit is contained in:
parent
4d874f397f
commit
b9f0c43a7b
4 changed files with 7 additions and 7 deletions
|
@ -20,19 +20,19 @@ def app(name, procs=None, threads=None, thmode=None):
|
|||
proc = {
|
||||
"asgi": (
|
||||
"granian --interface asgi --log-level warning --backlog 2048 "
|
||||
"--no-ws --http 1 "
|
||||
"--no-ws --opt --http 1 "
|
||||
f"--workers {procs} --threads {threads} --threading-mode {thmode} "
|
||||
"app.asgi:app"
|
||||
),
|
||||
"rsgi": (
|
||||
"granian --interface rsgi --log-level warning --backlog 2048 "
|
||||
"--no-ws --http 1 "
|
||||
"--no-ws --opt --http 1 "
|
||||
f"--workers {procs} --threads {threads} --threading-mode {thmode} "
|
||||
"app.rsgi:app"
|
||||
),
|
||||
"wsgi": (
|
||||
"granian --interface wsgi --log-level warning --backlog 2048 "
|
||||
"--no-ws --http 1 "
|
||||
"--no-ws --opt --http 1 "
|
||||
f"--workers {procs} --threads {threads} --threading-mode {thmode} "
|
||||
"app.wsgi:app"
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue