We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
auto
1 parent 8a55b5e commit 19fd799Copy full SHA for 19fd799
1 file changed
granian/server/common.py
@@ -677,9 +677,13 @@ def serve(
677
678
if self.runtime_mode == RuntimeModes.auto:
679
self.runtime_mode = RuntimeModes.st
680
- if self.interface == Interfaces.WSGI:
681
- self.runtime_mode = RuntimeModes.mt
682
- if self.http == HTTPModes.http2:
+ if any(
+ [
+ self.interface != Interfaces.RSGI,
683
+ self.runtime_threads > 1,
684
+ self.http == HTTPModes.http2,
685
+ ]
686
+ ):
687
self.runtime_mode = RuntimeModes.mt
688
689
if self.task_impl == TaskImpl.rust:
0 commit comments