emmett-framework / granian

A Rust HTTP server for Python applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using granian for flask

LohithBlaze opened this issue · comments

Hi,

When we use granian for flask services, it looks like granian doesnt switch the threads and the flask is only serving one request at a time.

is there something I'm missing here? here is the granian configuration used.
granian.Granian(target="main:app", address="0.0.0.0", interface=granian.server.Interfaces.WSGI, port=4001, log_level=granian.server.LogLevels.debug,
workers=workers,threads = threads, websockets=False ,reload=True,respawn_failed_workers=True,
backlog=100000).serve()

Should I increase the blocking-threads configuration to something greater than 1? is it due to this configuration?