Skip to content

Commit

Permalink
handle fd
Browse files Browse the repository at this point in the history
  • Loading branch information
minhyeoky committed Nov 18, 2024
1 parent 2b2fced commit 00d3db6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faststream/asgi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,14 @@ async def run(
port = int(run_extra_options.pop("port", 8000)) # type: ignore[arg-type]
workers = int(run_extra_options.pop("workers", 1)) # type: ignore[arg-type]
host = str(run_extra_options.pop("host", "localhost"))
fd = int(run_extra_options.pop("fd", -1)) # type: ignore[arg-type]
config = uvicorn.Config(
self,
host=host,
port=port,
log_level=log_level,
workers=workers,
fd=fd if fd != -1 else None,
**run_extra_options,
)
server = uvicorn.Server(config)
Expand Down

0 comments on commit 00d3db6

Please sign in to comment.