METADATA 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. Metadata-Version: 2.1
  2. Name: waitress
  3. Version: 2.1.2
  4. Summary: Waitress WSGI server
  5. Home-page: https://github.com/Pylons/waitress
  6. Author: Zope Foundation and Contributors
  7. Author-email: zope-dev@zope.org
  8. Maintainer: Pylons Project
  9. Maintainer-email: pylons-discuss@googlegroups.com
  10. License: ZPL 2.1
  11. Project-URL: Documentation, https://docs.pylonsproject.org/projects/waitress/en/latest/index.html
  12. Project-URL: Changelog, https://docs.pylonsproject.org/projects/waitress/en/latest/index.html#change-history
  13. Project-URL: Issue Tracker, https://github.com/Pylons/waitress/issues
  14. Keywords: waitress wsgi server http
  15. Classifier: Development Status :: 6 - Mature
  16. Classifier: Environment :: Web Environment
  17. Classifier: Intended Audience :: Developers
  18. Classifier: License :: OSI Approved :: Zope Public License
  19. Classifier: Programming Language :: Python
  20. Classifier: Programming Language :: Python :: 3
  21. Classifier: Programming Language :: Python :: 3.7
  22. Classifier: Programming Language :: Python :: 3.8
  23. Classifier: Programming Language :: Python :: 3.9
  24. Classifier: Programming Language :: Python :: 3.10
  25. Classifier: Programming Language :: Python :: Implementation :: CPython
  26. Classifier: Programming Language :: Python :: Implementation :: PyPy
  27. Classifier: Operating System :: OS Independent
  28. Classifier: Topic :: Internet :: WWW/HTTP
  29. Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
  30. Requires-Python: >=3.7.0
  31. Description-Content-Type: text/x-rst
  32. License-File: LICENSE.txt
  33. Provides-Extra: docs
  34. Requires-Dist: Sphinx (>=1.8.1) ; extra == 'docs'
  35. Requires-Dist: docutils ; extra == 'docs'
  36. Requires-Dist: pylons-sphinx-themes (>=1.0.9) ; extra == 'docs'
  37. Provides-Extra: testing
  38. Requires-Dist: pytest ; extra == 'testing'
  39. Requires-Dist: pytest-cover ; extra == 'testing'
  40. Requires-Dist: coverage (>=5.0) ; extra == 'testing'
  41. Waitress
  42. ========
  43. .. image:: https://img.shields.io/pypi/v/waitress.svg
  44. :target: https://pypi.org/project/waitress/
  45. :alt: latest version of waitress on PyPI
  46. .. image:: https://github.com/Pylons/waitress/workflows/Build%20and%20test/badge.svg
  47. :target: https://github.com/Pylons/waitress/actions?query=workflow%3A%22Build+and+test%22
  48. .. image:: https://readthedocs.org/projects/waitress/badge/?version=master
  49. :target: https://docs.pylonsproject.org/projects/waitress/en/master
  50. :alt: master Documentation Status
  51. .. image:: https://img.shields.io/badge/irc-freenode-blue.svg
  52. :target: https://webchat.freenode.net/?channels=pyramid
  53. :alt: IRC Freenode
  54. Waitress is a production-quality pure-Python WSGI server with very acceptable
  55. performance. It has no dependencies except ones which live in the Python
  56. standard library. It runs on CPython on Unix and Windows under Python 3.7+. It
  57. is also known to run on PyPy 3 (version 3.7 compatible python) on UNIX. It
  58. supports HTTP/1.0 and HTTP/1.1.
  59. For more information, see the "docs" directory of the Waitress package or visit
  60. https://docs.pylonsproject.org/projects/waitress/en/latest/
  61. 2.1.2
  62. -----
  63. Bugfix
  64. ~~~~~~
  65. - When expose_tracebacks is enabled waitress would fail to properly encode
  66. unicode thereby causing another error during error handling. See
  67. https://github.com/Pylons/waitress/pull/378
  68. - Header length checking had a calculation that was done incorrectly when the
  69. data was received across multple socket reads. This calculation has been
  70. corrected, and no longer will Waitress send back a 413 Request Entity Too
  71. Large. See https://github.com/Pylons/waitress/pull/376
  72. Security Bugfix
  73. ~~~~~~~~~~~~~~~
  74. - in 2.1.0 a new feature was introduced that allowed the WSGI thread to start
  75. sending data to the socket. However this introduced a race condition whereby
  76. a socket may be closed in the sending thread while the main thread is about
  77. to call select() therey causing the entire application to be taken down.
  78. Waitress will no longer close the socket in the WSGI thread, instead waking
  79. up the main thread to cleanup. See https://github.com/Pylons/waitress/pull/377
  80. 2.1.1
  81. -----
  82. Security Bugfix
  83. ~~~~~~~~~~~~~~~
  84. - Waitress now validates that chunked encoding extensions are valid, and don't
  85. contain invalid characters that are not allowed. They are still skipped/not
  86. processed, but if they contain invalid data we no longer continue in and
  87. return a 400 Bad Request. This stops potential HTTP desync/HTTP request
  88. smuggling. Thanks to Zhang Zeyu for reporting this issue. See
  89. https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36
  90. - Waitress now validates that the chunk length is only valid hex digits when
  91. parsing chunked encoding, and values such as ``0x01`` and ``+01`` are no
  92. longer supported. This stops potential HTTP desync/HTTP request smuggling.
  93. Thanks to Zhang Zeyu for reporting this issue. See
  94. https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36
  95. - Waitress now validates that the Content-Length sent by a remote contains only
  96. digits in accordance with RFC7230 and will return a 400 Bad Request when the
  97. Content-Length header contains invalid data, such as ``+10`` which would
  98. previously get parsed as ``10`` and accepted. This stops potential HTTP
  99. desync/HTTP request smuggling Thanks to Zhang Zeyu for reporting this issue. See
  100. https://github.com/Pylons/waitress/security/advisories/GHSA-4f7p-27jc-3c36
  101. 2.1.0
  102. -----
  103. Python Version Support
  104. ~~~~~~~~~~~~~~~~~~~~~~
  105. - Python 3.6 is no longer supported by Waitress
  106. - Python 3.10 is fully supported by Waitress
  107. Bugfix
  108. ~~~~~~
  109. - ``wsgi.file_wrapper`` now sets the ``seekable``, ``seek``, and ``tell``
  110. attributes from the underlying file if the underlying file is seekable. This
  111. allows WSGI middleware to implement things like range requests for example
  112. See https://github.com/Pylons/waitress/issues/359 and
  113. https://github.com/Pylons/waitress/pull/363
  114. - In Python 3 ``OSError`` is no longer subscriptable, this caused failures on
  115. Windows attempting to loop to find an socket that would work for use in the
  116. trigger.
  117. See https://github.com/Pylons/waitress/pull/361
  118. - Fixed an issue whereby ``BytesIO`` objects were not properly closed, and
  119. thereby would not get cleaned up until garbage collection would get around to
  120. it.
  121. This led to potential for random memory spikes/memory issues, see
  122. https://github.com/Pylons/waitress/pull/358 and
  123. https://github.com/Pylons/waitress/issues/357 .
  124. With thanks to Florian Schulze for testing/vaidating this fix!
  125. Features
  126. ~~~~~~~~
  127. - When the WSGI app starts sending data to the output buffer, we now attempt to
  128. send data directly to the socket. This avoids needing to wake up the main
  129. thread to start sending data. Allowing faster transmission of the first byte.
  130. See https://github.com/Pylons/waitress/pull/364
  131. With thanks to Michael Merickel for being a great rubber ducky!
  132. - Add REQUEST_URI to the WSGI environment.
  133. REQUEST_URI is similar to ``request_uri`` in nginx. It is a string that
  134. contains the request path before separating the query string and
  135. decoding ``%``-escaped characters.