Skip to main content

Waitress WSGI server

Project description

latest version of waitress on PyPI https://github.com/Pylons/waitress/workflows/Build%20and%20test/badge.svg master Documentation Status IRC Freenode

Waitress is a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs on CPython on Unix and Windows under Python 3.7+. It is also known to run on PyPy 3 (version 3.7 compatible python) on UNIX. It supports HTTP/1.0 and HTTP/1.1.

For more information, see the “docs” directory of the Waitress package or visit https://docs.pylonsproject.org/projects/waitress/en/latest/

2.1.1

Security Bugfix

  • Waitress now validates that chunked encoding extensions are valid, and don’t contain invalid characters that are not allowed. They are still skipped/not processed, but if they contain invalid data we no longer continue in and return a 400 Bad Request. This stops potential HTTP desync/HTTP request smuggling. Thanks to Zhang Zeyu for reporting this issue. See https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36

  • Waitress now validates that the chunk length is only valid hex digits when parsing chunked encoding, and values such as 0x01 and +01 are no longer supported. This stops potential HTTP desync/HTTP request smuggling. Thanks to Zhang Zeyu for reporting this issue. See https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36

  • Waitress now validates that the Content-Length sent by a remote contains only digits in accordance with RFC7230 and will return a 400 Bad Request when the Content-Length header contains invalid data, such as +10 which would previously get parsed as 10 and accepted. This stops potential HTTP desync/HTTP request smuggling Thanks to Zhang Zeyu for reporting this issue. See https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36

2.1.0

Python Version Support

  • Python 3.6 is no longer supported by Waitress

  • Python 3.10 is fully supported by Waitress

Bugfix

Features

  • When the WSGI app starts sending data to the output buffer, we now attempt to send data directly to the socket. This avoids needing to wake up the main thread to start sending data. Allowing faster transmission of the first byte. See https://github.com/Pylons/waitress/pull/364

    With thanks to Michael Merickel for being a great rubber ducky!

  • Add REQUEST_URI to the WSGI environment.

    REQUEST_URI is similar to request_uri in nginx. It is a string that contains the request path before separating the query string and decoding %-escaped characters.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

waitress-2.1.1.tar.gz (178.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waitress-2.1.1-py3-none-any.whl (57.3 kB view details)

Uploaded Python 3

File details

Details for the file waitress-2.1.1.tar.gz.

File metadata

  • Download URL: waitress-2.1.1.tar.gz
  • Upload date:
  • Size: 178.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for waitress-2.1.1.tar.gz
Algorithm Hash digest
SHA256 e2e60576cf14a1539da79f7b7ee1e79a71e64f366a0b47db54a15e971f57bb16
MD5 69e509aa163bf8db3567aca8e677d9b1
BLAKE2b-256 f5f7e258a76818a9c83d7ef3b89377231b1ea1e9e5f06f70561a3115d07f73de

See more details on using hashes here.

File details

Details for the file waitress-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: waitress-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 57.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for waitress-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c549f5b2b4afd44d9d97d7cec79f3ef581e25d832827f415dc175327af674aa8
MD5 4b5e6cc7f1f3bf5f1e8b932d1d6db771
BLAKE2b-256 3cce5761c7e60b9fdf526ddf461f416e67644147e83a30e8364d231ec62eb81e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page