pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-websockets py-websockets: updated to 5.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f592a88a8651
branches:  trunk
changeset: 381871:f592a88a8651
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jun 18 10:46:26 2018 +0000

description:
py-websockets: updated to 5.0.1

5.0.1
Version 5.0 fixes a security issue introduced in version 4.0.

websockets 4.0 was vulnerable to denial of service by memory exhaustion because it didn't enforce max_size when decompressing compressed messages.

Also:
:func:~client.connect() performs HTTP Basic Auth when the URI contains credentials.
Iterating on incoming messages no longer raises an exception when the connection terminates with code 1001 (going away).
A plain HTTP request now receives a 426 Upgrade Required response and doesn't log a stack trace.
:func:~server.unix_serve can be used as an asynchronous context manager on Python ? 3.5.1.
Added :meth:~protocol.WebSocketCommonProtocol.closed property.
If a :meth:~protocol.WebSocketCommonProtocol.ping doesn't receive a pong, it's cancelled when the connection is closed.
Reported the cause of :exc:~exceptions.ConnectionClosed exceptions.
Added new examples in the documentation.
Updated documentation with new features from Python 3.6.
Improved several other sections of the documentation.
Fixed missing close code, which caused :exc:TypeError on connection close.
Fixed a race condition in the closing handshake that raised :exc:~exceptions.InvalidState.
Stopped logging stack traces when the TCP connection dies prematurely.
Prevented writing to a closing TCP connection during unclean shutdowns.
Made connection termination more robust to network congestion.
Prevented processing of incoming frames after failing the connection.

diffstat:

 www/py-websockets/Makefile |   4 ++--
 www/py-websockets/PLIST    |   3 ++-
 www/py-websockets/distinfo |  10 +++++-----
 3 files changed, 9 insertions(+), 8 deletions(-)

diffs (41 lines):

diff -r d045e6ea54a8 -r f592a88a8651 www/py-websockets/Makefile
--- a/www/py-websockets/Makefile        Mon Jun 18 10:45:32 2018 +0000
+++ b/www/py-websockets/Makefile        Mon Jun 18 10:46:26 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/11/03 11:17:21 adam Exp $
+# $NetBSD: Makefile,v 1.5 2018/06/18 10:46:26 adam Exp $
 
-DISTNAME=      websockets-4.0.1
+DISTNAME=      websockets-5.0.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=w/websockets/}
diff -r d045e6ea54a8 -r f592a88a8651 www/py-websockets/PLIST
--- a/www/py-websockets/PLIST   Mon Jun 18 10:45:32 2018 +0000
+++ b/www/py-websockets/PLIST   Mon Jun 18 10:46:26 2018 +0000
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.4 2017/11/03 11:17:21 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/06/18 10:46:26 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${EGG_INFODIR}/zip-safe
 ${PYSITELIB}/websockets/__init__.py
 ${PYSITELIB}/websockets/__init__.pyc
 ${PYSITELIB}/websockets/__init__.pyo
diff -r d045e6ea54a8 -r f592a88a8651 www/py-websockets/distinfo
--- a/www/py-websockets/distinfo        Mon Jun 18 10:45:32 2018 +0000
+++ b/www/py-websockets/distinfo        Mon Jun 18 10:46:26 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2017/11/03 11:17:21 adam Exp $
+$NetBSD: distinfo,v 1.4 2018/06/18 10:46:26 adam Exp $
 
-SHA1 (websockets-4.0.1.tar.gz) = 9118f0468bf3df933735ffdff5fa5f866abf16d5
-RMD160 (websockets-4.0.1.tar.gz) = 7a89af5de4eae356997a09b54cddfd25f9f83567
-SHA512 (websockets-4.0.1.tar.gz) = a60a453f33f1005c7ec7cee10f6ba6cca18628306de51872ad5a910f12f39831049f3a67ff4c3cc62efce47ce030b9e9d075d4418e8da2dcc594b8824ce21dfb
-Size (websockets-4.0.1.tar.gz) = 61839 bytes
+SHA1 (websockets-5.0.1.tar.gz) = d47b2453b268b38d3d9d216430a241b694ef2ec9
+RMD160 (websockets-5.0.1.tar.gz) = 3bb5e0fc3fc18106b1c8d1f4e3c54630c66bea5b
+SHA512 (websockets-5.0.1.tar.gz) = 66cb4590721afabb480f823f14c19390702350c8bca50ee44f30b8a1a17e813657b85a25081b55390b27c9c390fdefa23f0b19ba09e9d3ed6511a04f0f908f32
+Size (websockets-5.0.1.tar.gz) = 68494 bytes



Home | Main Index | Thread Index | Old Index