Waitress WSGI server
Waitress is meant to be 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 2.6+ and Python 3.2. It is also known to run on PyPy 1.6.0 on UNIX. It supports HTTP/1.0 and HTTP/1.1.
For more information, see the “docs” directory of the Waitress package or http://docs.pylonsproject.org/projects/waitress/en/latest/ .
- A logic error prevented the internal outbuf buffer of a channel from being flushed when the client could not accept the entire contents of the output buffer in a single succession of socket.send calls when the channel was in a “pending close” state. The socket in such a case would be closed prematurely, sometimes resulting in partially delivered content. This was discovered by a user using waitress behind an Nginx reverse proxy, which apparently is not always ready to receive data. The symptom was that he received “half” of a large CSS file (110K) while serving content via waitress behind the proxy.
- Fix PATH_INFO encoding/decoding on Python 3 (as per PEP 3333, tunnel bytes-in-unicode-as-latin-1-after-unquoting).
- Added “design” document to docs.
- Set default connection_limit back to 100 for benefit of maximal platform compatibility.
- Normalize setting of last_activity during send.
- Minor resource cleanups during tests.
- Channel timeout cleanup was broken.
- Dont hang a thread up trying to send data to slow clients.
- Use self.logger to log socket errors instead of self.log_info (normalize).
- Remove pointless handle_error method from channel.
- Queue requests instead of tasks in a channel.
- Expect: 100-continue responses were broken.
- Set up logging by calling logging.basicConfig() when serve is called (show tracebacks and other warnings to console by default).
- Disallow WSGI applications to set “hop-by-hop” headers (Connection, Transfer-Encoding, etc).
- Don’t treat 304 status responses specially in HTTP/1.1 mode.
- Remove out of date interfaces.py file.
- Normalize logging (all output is now sent to the waitress logger rather than in degenerate cases some output being sent directly to stderr).
- Support HTTP/1.1 Transfer-Encoding: chunked responses.
- Slightly better docs about logging.
- Initial release.