py-waitress: updated to 1.3.0 1.3.0: Deprecations - The send_bytes adjustment now defaults to 1 and is deprecated pending removal in a future release. Features - Add a new outbuf_high_watermark adjustment which is used to apply backpressure on the app_iter to avoid letting it spin faster than data can be written to the socket. This stabilizes responses that iterate quickly with a lot of data. - Stop early and close the app_iter when attempting to write to a closed socket due to a client disconnect. This should notify a long-lived streaming response when a client hangs up. - Adjust the flush to output SO_SNDBUF bytes instead of whatever was set in the send_bytes adjustment. send_bytes now only controls how much waitress will buffer internally before flushing to the kernel, whereas previously it used to also throttle how much data was sent to the kernel. This change enables a streaming app_iter containing small chunks to still be flushed efficiently. Bugfixes - Upon receiving a request that does not include HTTP/1.0 or HTTP/1.1 we will no longer set the version to the string value "None". See - When a client closes a socket unexpectedly there was potential for memory leaks in which data was written to the buffers after they were closed, causing them to reopen. - Fix the queue depth warnings to only show when all threads are busy. - Trigger the app_iter to close as part of shutdown. This will only be noticeable for users of the internal server api. In more typical operations the server will die before benefiting from these changes. - Fix a bug in which a streaming app_iter may never cleanup data that has already been sent. This would cause buffers in waitress to grow without bounds. These buffers now properly rotate and release their data. - Fix a bug in which non-seekable subclasses of io.IOBase would trigger an exception when passed to the wsgi.file_wrapper callback.diff -r1.6 -r1.7 pkgsrc/www/py-waitress/Makefile
(adam)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2019/01/29 14:30:03 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2019/07/03 20:36:51 adam Exp $ | |
2 | 2 | |||
3 | DISTNAME= waitress-1.2.1 | 3 | DISTNAME= waitress-1.3.0 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= www python | 5 | CATEGORIES= www python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=w/waitress/} | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=w/waitress/} | |
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/Pylons/waitress | 9 | HOMEPAGE= https://github.com/Pylons/waitress | |
10 | COMMENT= Production-quality pure-Python WSGI server | 10 | COMMENT= Production-quality pure-Python WSGI server | |
11 | LICENSE= zpl-2.1 | 11 | LICENSE= zpl-2.1 | |
12 | 12 | |||
13 | TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage | 13 | TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage | |
14 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose | 14 | TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose | |
15 | 15 | |||
16 | USE_LANGUAGES= # none | 16 | USE_LANGUAGES= # none |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2019/01/29 14:30:03 adam Exp $ | 1 | $NetBSD: distinfo,v 1.7 2019/07/03 20:36:51 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (waitress-1.2.1.tar.gz) = a51df67a6755cb37e5a7ba88b9c52c299dd22dd4 | 3 | SHA1 (waitress-1.3.0.tar.gz) = 341804d677b86afd4697985dbc12f57399b4729e | |
4 | RMD160 (waitress-1.2.1.tar.gz) = 890dd9a44e133b770591fcb25eb396ac57f3762d | 4 | RMD160 (waitress-1.3.0.tar.gz) = df56a1a76386aca7b679ecff1d6592b392756d97 | |
5 | SHA512 (waitress-1.2.1.tar.gz) = 6c06fb799aa277a5e53fc085de3e284c558327f3df7fd2f06771e87f741bdf911a8e0ed2f13f7aa115ab13d4364da27b54984592db6ce3a4326723a7d4c7f7c3 | 5 | SHA512 (waitress-1.3.0.tar.gz) = 387196b24e9fbf39460d1dda942c235e3eac11c8083489a8055364f72dd4aa9e995a87f51394c1bbcbda634d922a5a4fdf1c9651f8e9d6c8c60704c7eab029cd | |
6 | Size (waitress-1.2.1.tar.gz) = 162588 bytes | 6 | Size (waitress-1.3.0.tar.gz) = 163874 bytes |