Waitress
A production-quality pure-Python WSGI server with a small footprint, suitable for Windows deployments.
Official Documentation ↗v3.0. Check the official docs for the latest API surface.Installation
pip install waitressMethods
No methods match this filter.
Waitress is a pure-Python WSGI server with no external dependencies, often paired with Pyramid and Flask.
Key Features
- Pure Python, works on Windows
- Threaded and asyncore-style engines
- Simple programmatic serve() API
Usage Notes
Pin a version and check the official docs for the API surface you depend on before upgrading.
Errors
The following points are quoted verbatim from the official documentation. 来源:https://docs.pylonsproject.org/projects/waitress/en/stable/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:53:23.763Z. Any error type, throw condition or recovery step not stated there is left unspecified; this page does not infer exception classes or return values.
- They are still skipped/not processed, but if they contain invalid data we no longer continue in and return a 400 Bad Request. (https://docs.pylonsproject.org/projects/waitress/en/stable/)
- Please note that this is your last warning, and you should update your configuration if you do NOT want to use the new defaults. (https://docs.pylonsproject.org/projects/waitress/en/stable/)
- Unfortunately the regular expression was written in a way that with invalid input it leads to catastrophic backtracking which allows for a Denial of Service and CPU usage going to a 100%. (https://docs.pylonsproject.org/projects/waitress/en/stable/)
Security notes
Quoted verbatim from the official documentation; this is not a complete threat model. 来源:https://docs.pylonsproject.org/projects/waitress/en/stable/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:53:23.763Z.
- Security ¶ Fix a bug that would lead to Waitress busy looping on select() on a half-open socket due to a race condition that existed when creating a new HTTPChannel. (https://docs.pylonsproject.org/projects/waitress/en/stable/)
- Unfortunately the regular expression was written in a way that with invalid input it leads to catastrophic backtracking which allows for a Denial of Service and CPU usage going to a 100%. (https://docs.pylonsproject.org/projects/waitress/en/stable/)
- This makes sure Waitress won’t accidentally treat non-printable characters as whitespace and lead to a potental HTTP request smuggling/splitting security issue. (https://docs.pylonsproject.org/projects/waitress/en/stable/)
FAQ
- Is Waitress suitable for Windows?
- Yes. It is pure Python and avoids fork, which makes it the common choice for WSGI deployments on Windows.
- How does it compare to Gunicorn?
- Waitress uses threads in one process, while Gunicorn forks multiple processes. Gunicorn is Unix-only and often faster on Linux.
- How do I tune concurrency?
- Set threads to control concurrent requests and channel_timeout for slow clients, tuning with load tests rather than guessing.
Report a problem with this API docOpens a pre-filled issue on GitHub.