Releases: encode/uvicorn
Releases · encode/uvicorn
Version 0.17.0
Version 0.16.0
0.16.0 - 2021-12-08
Added
- Enable read of uvicorn settings from environment variables (#1279) 06/12/21
- Bump
websockets
to 10.0. (#1180) 13/09/21 - Ensure non-zero exit code when startup fails (#1278) 06/12/21
- Increase
httptools
version range from "==0.2.*" to ">=0.2.0,<0.4.0". (#1243) 8/11/21 - Override default asyncio event loop with reload only on Windows (#1257) 24/11/21
- Replace
HttpToolsProtocol.pipeline
type fromlist
todeque
. (#1213) 10/10/21 - Replace
WSGIResponder.send_queue
type fromlist
todeque
. (#1214) 10/10/21
Fixed
- Main process exit after startup failure on reloader classes (#1177) 30/09/21
- Add explicit casting on click options (#1217) 11/10/21
- Allow WebSocket close event to receive reason being None from ASGI app. (#1259) 23/11/21
- Fix a bug in
WebSocketProtocol.asgi_receive
on which we returned a close frame even if there were data messages before that frame in the read queue. (#1252) 25/11/21 - The option
--reload-dirs
was splitting a string into single character directories. (#1267) 25/11/21 - Only second SIGINT is able to forcelly shutdown the server (#1269) 28/11/21
- Allow app-dir parameter on the run() function (#1271) 06/12/21
Version 0.15.0
0.15.0 - 2021-08-13
Added
- Change reload to be configurable with glob patterns. Currently only
.py
files are watched, which is different from the previous default behavior. (#820) 08/08/21 - Add Python 3.10-rc.1 support. Now the server uses
asyncio.run
which will: start a fresh asyncio event loop, on shutdown cancel any background tasks rather than aborting them,aexit
any remaining async generators, and shutdown the defaultThreadPoolExecutor
. (#1070) 30/07/21 - Exit with status 3 when worker starts failed (#1077) 22/06/21
- Add option to set websocket ping interval and timeout (#1048) 09/06/21
- Adapt bind_socket to make it usable with multiple processes (#1009) 21/06/21
- Add existence check to the reload directory(ies) (#1089) 21/06/21
- Add missing trace log for websocket protocols (#1083) 19/06/21
- Support disabling default Server and Date headers (#818) 11/06/21
Changed
Fixed
Version 0.14.0
0.14.0 - 2021-06-01
Added
- Defaults ws max_size on server to 16MB (#995) 5/29/21
- Improve user feedback if no ws library installed (#926 and #1023) 2/27/21
- Support 'reason' field in 'websocket.close' messages (#957) 2/24/21
- Implemented lifespan.shutdown.failed (#755) 2/25/21
Changed
- Upgraded websockets requirements (#1065) 6/1/21
- Switch to asyncio streams API (#869) 5/29/21
- Update httptools from 0.1.* to 0.2.* (#1024) 5/28/21
- Allow Click 8.0, refs #1016 (#1042) 5/23/21
- Add search for a trusted host in ProxyHeadersMiddleware (#591) 3/13/21
- Up wsproto to 1.0.0 (#892) 2/25/21
Fixed
Version 0.13.4
Version 0.13.3
0.13.3 - 2020-12-29
Fixed
- Prevent swallowing of return codes from
subprocess
when running with Gunicorn by properly resetting signals. (Pull #895) - Tweak detection of app factories to be more robust. A warning is now logged when passing a factory without the
--factory
flag. (Pull #914) - Properly clean tasks when handshake is aborted when running with
--ws websockets
. (Pull #921)