Phil Jones
Phil Jones
I don't understand the issue here, is it that it defines the schema rather than referencing it?
I'm going to give this more consideration. I think Quart-Schema might benefit from a way to consider alternative/multiple content-types in a general sense.
It is a good idea and I'd welcome a pull request, but I haven't worked on this project for a couple of years and I'm unlikely to at the moment.
When Hypercorn receives a SIGTERM it should trigger a graceful shutdown, whereby it stops accepting connections and allows the remaining ones to complete. It then sends a `lifespan.shutdown` ASGI event...
Ah, I see. I'm thinking the `hypercorn.trio.serve` function needs another argument of the type `shutdown: Optional[Awaitable[None]] = None` which would allow usage like, ```python trigger_shutdown = trio.Event() nursery.start_soon(partial(serve, app, config,...
Sorry there was a typo, it should have been ```python nursery.start_soon(partial(serve, app, config, shutdown=trigger_shutdown.wait())) ``` So that you could pass any awaitable (rather than a callable). Do you think it...
Sounds sensible, I've added in https://gitlab.com/pgjones/hypercorn/commit/33a6f1a3847382921ec3d37143145d1bf06ee263. I'll release soon, so please say if it doesn't do the job.
Sorry about the commit message, it isn't very clear (I can't quite remember the reasoning now either). I've released 0.8.0 now, if you'd like to use the shutdown trigger.
Partial fix in 81bbb32642f4daa2dbeb3b4912da53bd146fd9ae