head 1.20; access; symbols pkgsrc-2023Q4:1.20.0.2 pkgsrc-2023Q4-base:1.20 pkgsrc-2023Q3:1.19.0.4 pkgsrc-2023Q3-base:1.19 pkgsrc-2023Q2:1.19.0.2 pkgsrc-2023Q2-base:1.19 pkgsrc-2023Q1:1.18.0.4 pkgsrc-2023Q1-base:1.18 pkgsrc-2022Q4:1.18.0.2 pkgsrc-2022Q4-base:1.18 pkgsrc-2022Q3:1.17.0.4 pkgsrc-2022Q3-base:1.17 pkgsrc-2022Q2:1.17.0.2 pkgsrc-2022Q2-base:1.17 pkgsrc-2022Q1:1.16.0.2 pkgsrc-2022Q1-base:1.16 pkgsrc-2021Q4:1.13.0.2 pkgsrc-2021Q4-base:1.13 pkgsrc-2021Q3:1.12.0.4 pkgsrc-2021Q3-base:1.12 pkgsrc-2021Q2:1.12.0.2 pkgsrc-2021Q2-base:1.12 pkgsrc-2021Q1:1.9.0.12 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.9.0.10 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.8 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.9.0.6 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.9.0.2 pkgsrc-2020Q1-base:1.9 pkgsrc-2019Q4:1.9.0.4 pkgsrc-2019Q4-base:1.9 pkgsrc-2019Q3:1.8.0.8 pkgsrc-2019Q3-base:1.8 pkgsrc-2019Q2:1.8.0.6 pkgsrc-2019Q2-base:1.8 pkgsrc-2019Q1:1.8.0.4 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.8.0.2 pkgsrc-2018Q4-base:1.8 pkgsrc-2018Q3:1.7.0.2 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.5.0.2 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.4.0.4 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.2 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.3.0.4 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.2.0.2 pkgsrc-2017Q2-base:1.2; locks; strict; comment @# @; 1.20 date 2023.10.27.09.06.02; author adam; state Exp; branches; next 1.19; commitid Yjg0kKFXzvdPafKE; 1.19 date 2023.05.16.22.48.21; author wiz; state Exp; branches; next 1.18; commitid LW4z0Ja5xNWMZepE; 1.18 date 2022.11.06.18.45.53; author adam; state Exp; branches; next 1.17; commitid Hr8Dw1rq7C3cNF0E; 1.17 date 2022.04.19.12.04.38; author adam; state Exp; branches; next 1.16; commitid i5leCCcnGVI62OAD; 1.16 date 2022.02.21.08.23.53; author adam; state Exp; branches; next 1.15; commitid fE0GczeEzDl1EstD; 1.15 date 2022.01.04.20.55.38; author wiz; state Exp; branches; next 1.14; commitid CYyhdK9qtoffkmnD; 1.14 date 2021.12.30.13.05.42; author adam; state Exp; branches; next 1.13; commitid w23rFuQ4pTWhUFmD; 1.13 date 2021.11.23.21.02.13; author adam; state Exp; branches; next 1.12; commitid 7mrgHYrgVydsJXhD; 1.12 date 2021.06.04.12.46.55; author adam; state Exp; branches; next 1.11; commitid fwqHISvdd1lnwOVC; 1.11 date 2021.05.17.10.21.09; author adam; state Exp; branches; next 1.10; commitid LJZGdpkXDCAgiuTC; 1.10 date 2021.05.10.12.52.54; author adam; state Exp; branches; next 1.9; commitid Ysy01MNyN9KcmBSC; 1.9 date 2019.11.26.19.08.55; author adam; state Exp; branches; next 1.8; commitid cxpuTnMCbfukvoMB; 1.8 date 2018.11.06.14.31.48; author adam; state Exp; branches; next 1.7; commitid dNu2NMiy6GtBlTYA; 1.7 date 2018.09.07.11.26.42; author adam; state Exp; branches; next 1.6; commitid EwdEs0GOzvdufaRA; 1.6 date 2018.07.06.08.04.21; author adam; state Exp; branches; next 1.5; commitid oAcpkcPQ56OX93JA; 1.5 date 2018.06.18.10.46.26; author adam; state Exp; branches; next 1.4; commitid Z7OfiFiwum4cDKGA; 1.4 date 2017.11.03.11.17.21; author adam; state Exp; branches; next 1.3; commitid TrTpcEbk6RPg6AdA; 1.3 date 2017.08.22.08.47.50; author adam; state Exp; branches; next 1.2; commitid LIdxYj8UlmbACb4A; 1.2 date 2017.07.01.22.13.55; author joerg; state Exp; branches; next 1.1; commitid RTxUgvDtFk7KKzXz; 1.1 date 2017.06.24.07.30.18; author adam; state Exp; branches; next ; commitid v9c7wP5ZRPtB5BWz; desc @@ 1.20 log @py-websockets: updated to 12.0 12.0 Backwards-incompatible changes websockets 12.0 requires Python ≥ 3.8. websockets 11.0 is the last version supporting Python 3.7. Improvements Made convenience imports from websockets compatible with static code analysis tools such as auto-completion in an IDE or type checking with mypy. Accepted a plain :class:`int` where an :class:`~http.HTTPStatus` is expected. Added :class:`~frames.CloseCode`. @ text @# $NetBSD: Makefile,v 1.19 2023/05/16 22:48:21 wiz Exp $ DISTNAME= websockets-12.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_PYPI:=w/websockets/} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://github.com/aaugustin/websockets COMMENT= Implementation of the WebSocket Protocol (RFC 6455) LICENSE= modified-bsd PYTHON_VERSIONS_INCOMPATIBLE= 27 .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" @ 1.19 log @py-websockets: update to 11.0.3. 11.0.3 May 7, 2023 Bug fixes Fixed the threading implementation of servers on Windows. 11.0.2 April 18, 2023 Bug fixes Fixed a deadlock in the threading implementation when closing a connection without reading all messages. 11.0.1 April 6, 2023 Bug fixes Restored the C extension in the source distribution. 11.0 April 2, 2023 Backwards-incompatible changes The Sans-I/O implementation was moved. Aliases provide compatibility for all previously public APIs according to the backwards-compatibility policy. The connection module was renamed to protocol. The connection.Connection, server.ServerConnection, and client.ClientConnection classes were renamed to protocol.Protocol, server.ServerProtocol, and client.ClientProtocol. Sans-I/O protocol constructors now use keyword-only arguments. If you instantiate ServerProtocol or ClientProtocol directly, make sure you are using keyword arguments. Closing a connection without an empty close frame is OK. Receiving an empty close frame now results in ConnectionClosedOK instead of ConnectionClosedError. As a consequence, calling WebSocket.close() without arguments in a browser isn’t reported as an error anymore. serve() times out on the opening handshake after 10 seconds by default. You can adjust the timeout with the open_timeout parameter. Set it to None to disable the timeout entirely. New features websockets 10.0 introduces a implementation on top of threading. It may be more convenient if you don’t need to manage many connections and you’re more comfortable with threading than asyncio. It is particularly suited to client applications that establish only one connection. It may be used for servers handling few connections. See connect() and serve() for details. Added open_timeout to serve(). Made it possible to close a server without closing existing connections. Added select_subprotocol to customize negotiation of subprotocols in the Sans-I/O layer. Improvements Added platform-independent wheels. Improved error handling in broadcast(). Set server_hostname automatically on TLS connections when providing a sock argument to connect(). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2022/11/06 18:45:53 adam Exp $ d3 1 a3 1 DISTNAME= websockets-11.0.3 @ 1.18 log @py-websockets: updated to 10.4 10.4 New features Validated compatibility with Python 3.11. Added the latency property to protocols. Changed ping to return the latency of the connection. Supported overriding or removing the User-Agent header in clients and the Server header in servers. Added deployment guides for more Platform as a Service providers. Improvements Improved FAQ. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2022/04/19 12:04:38 adam Exp $ d3 1 a3 1 DISTNAME= websockets-10.4 @ 1.17 log @py-websockets: updated to 10.3 10.3 Backwards-incompatible changes The exception attribute of Request and Response is deprecated. Use the handshake_exc attribute of ServerConnection and ClientConnection instead. See Integrate the Sans-I/O layer for details. Improvements Reduced noise in logs when ssl or zlib raise exceptions. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2022/02/21 08:23:53 adam Exp $ d3 1 a3 1 DISTNAME= websockets-10.3 @ 1.16 log @py-websockets: updated to 10.2 10.2 Improvements Made compression negotiation more lax for compatibility with Firefox. Improved FAQ and quick start guide. Bug fixes Fixed backwards-incompatibility in 10.1 for connection handlers created with functools.partial(). Avoided leaking open sockets when connect() is canceled. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2022/01/04 20:55:38 wiz Exp $ d3 1 a3 1 DISTNAME= websockets-10.2 @ 1.15 log @*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2021/12/30 13:05:42 adam Exp $ d3 1 a3 1 DISTNAME= websockets-10.1 a4 1 PKGREVISION= 1 @ 1.14 log @Forget about Python 3.6 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2021/11/23 21:02:13 adam Exp $ d5 1 @ 1.13 log @py-websockets: updated to 10.1 10.1 New features Added a tutorial. Made the second parameter of connection handlers optional. It will be deprecated in the next major release. The request path is available in the :attr:`~legacy.protocol.WebSocketCommonProtocol.path` attribute of the first argument. If you implemented the connection handler of a server as: async def handler(request, path): ... You should replace it by: async def handler(request): path = request.path # if handler() uses the path argument ... Added python -m websockets --version. Improvements Added wheels for Python 3.10, PyPy 3.7, and for more platforms. Reverted optimization of default compression settings for clients, mainly to avoid triggering bugs in poorly implemented servers like AWS API Gateway. Mirrored the entire :class:`~asyncio.Server` API in :class:`~server.WebSocketServer`. Improved performance for large messages on ARM processors. Documented how to auto-reload on code changes in development. Bug fixes Avoided half-closing TCP connections that are already closed. 10.0 Backwards-incompatible changes websockets 10.0 requires Python ≥ 3.7. websockets 9.1 is the last version supporting Python 3.6. The loop parameter is deprecated from all APIs. This reflects a decision made in Python 3.8. See the release notes of Python 3.10 for details. The loop parameter is also removed from :class:`~server.WebSocketServer`. This should be transparent. :func:`~client.connect` times out after 10 seconds by default. You can adjust the timeout with the open_timeout parameter. Set it to :obj:`None` to disable the timeout entirely. The legacy_recv option is deprecated. See the release notes of websockets 3.0 for details. The signature of :exc:`~exceptions.ConnectionClosed` changed. If you raise :exc:`~exceptions.ConnectionClosed` or a subclass, rather than catch them when websockets raises them, you must change your code. A msg parameter was added to :exc:`~exceptions.InvalidURI`. If you raise :exc:`~exceptions.InvalidURI`, rather than catch it when websockets raises it, you must change your code. New features websockets 10.0 introduces a Sans-I/O API for easier integration in third-party libraries. If you're integrating websockets in a library, rather than just using it, look at the :doc:`Sans-I/O integration guide <../howto/sansio>`. Added compatibility with Python 3.10. Added :func:`~websockets.broadcast` to send a message to many clients. Added support for reconnecting automatically by using :func:`~client.connect` as an asynchronous iterator. Added open_timeout to :func:`~client.connect`. Documented how to integrate with Django. Documented how to deploy websockets in production, with several options. Documented how to authenticate connections. Documented how to broadcast messages to many connections. Improvements Improved logging. See the :doc:`logging guide <../topics/logging>`. Optimized default compression settings to reduce memory usage. Optimized processing of client-to-server messages when the C extension isn't available. Supported relative redirects in :func:`~client.connect`. Handled TCP connection drops during the opening handshake. Made it easier to customize authentication with :meth:`~auth.BasicAuthWebSocketServerProtocol.check_credentials`. Provided additional information in :exc:`~exceptions.ConnectionClosed` exceptions. Clarified several exceptions or log messages. Restructured documentation. Improved API documentation. Extended FAQ. Bug fixes Avoided a crash when receiving a ping while the connection is closing. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2021/06/04 12:46:55 adam Exp $ d13 1 a13 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 36 @ 1.12 log @py-websockets: updated to 9.1 9.1 Version 9.1 fixes a security issue introduced in version 8.0. Version 8.0 was vulnerable to timing attacks on HTTP Basic Auth passwords. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2021/05/17 10:21:09 adam Exp $ d3 1 a3 1 DISTNAME= websockets-9.1 d13 1 a13 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 @ 1.11 log @py-websockets: updated to 9.0.2 9.0.2 Restored compatibility of python -m websockets with Python < 3.9. Restored compatibility with mypy. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2021/05/10 12:52:54 adam Exp $ d3 1 a3 1 DISTNAME= websockets-9.0.2 @ 1.10 log @py-websockets: updated to 9.0.1 9.0.1 Fixed issues with the packaging of the 9.0 release. 9.0 Note Version 9.0 moves or deprecates several APIs. Aliases provide backwards compatibility for all previously public APIs. :class:`~datastructures.Headers` and :exc:`~datastructures.MultipleValuesError` were moved from websockets.http to :mod:`websockets.datastructures`. If you're using them, you should adjust the import path. The client, server, protocol, and auth modules were moved from the websockets package to websockets.legacy sub-package, as part of an upcoming refactoring. Despite the name, they're still fully supported. The refactoring should be a transparent upgrade for most uses when it's available. The legacy implementation will be preserved according to the backwards-compatibility policy. The framing, handshake, headers, http, and uri modules in the websockets package are deprecated. These modules provided low-level APIs for reuse by other WebSocket implementations, but that never happened. Keeping these APIs public makes it more difficult to improve websockets for no actual benefit. Added compatibility with Python 3.9. Added support for IRIs in addition to URIs. Added close codes 1012, 1013, and 1014. Raised an error when passing a :class:`dict` to :meth:`~legacy.protocol.WebSocketCommonProtocol.send`. Fixed sending fragmented, compressed messages. Fixed Host header sent when connecting to an IPv6 address. Fixed creating a client or a server with an existing Unix socket. Aligned maximum cookie size with popular web browsers. Ensured cancellation always propagates, even on Python versions where :exc:`~asyncio.CancelledError` inherits :exc:`Exception`. Improved error reporting. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2019/11/26 19:08:55 adam Exp $ d3 1 a3 1 DISTNAME= websockets-9.0.1 @ 1.9 log @py-websockets: updated to 8.1 8.1 Added compatibility with Python 3.8. 8.0.2 Restored the ability to pass a socket with the sock parameter of :func:`~server.serve`. Removed an incorrect assertion when a connection drops. 8.0.1 Restored the ability to import WebSocketProtocolError from websockets. 8.0 Warning Version 8.0 drops compatibility with Python 3.4 and 3.5. Note Version 8.0 expects process_request to be a coroutine. Previously, it could be a function or a coroutine. If you're passing a process_request argument to :func:`~server.serve` or :class:`~server.WebSocketServerProtocol`, or if you're overriding :meth:`~protocol.WebSocketServerProtocol.process_request` in a subclass, define it with async def instead of def. For backwards compatibility, functions are still mostly supported, but mixing functions and coroutines won't work in some inheritance scenarios. Note Version 8.0 changes the behavior of the max_queue parameter. If you were setting max_queue=0 to make the queue of incoming messages unbounded, change it to max_queue=None. Note Version 8.0 deprecates the host , port , and secure attributes of :class:`~protocol.WebSocketCommonProtocol`. Use :attr:`~protocol.WebSocketCommonProtocol.local_address` in servers and :attr:`~protocol.WebSocketCommonProtocol.remote_address` in clients instead of host and port. Note Version 8.0 renames the WebSocketProtocolError exception to :exc:`ProtocolError` . A WebSocketProtocolError alias provides backwards compatibility. Note Version 8.0 adds the reason phrase to the return type of the low-level API :func:`~http.read_response` . Also: :meth:`~protocol.WebSocketCommonProtocol.send`, :meth:`~protocol.WebSocketCommonProtocol.ping`, and :meth:`~protocol.WebSocketCommonProtocol.pong` support bytes-like types :class:`bytearray` and :class:`memoryview` in addition to :class:`bytes`. Added :exc:`~exceptions.ConnectionClosedOK` and :exc:`~exceptions.ConnectionClosedError` subclasses of :exc:`~exceptions.ConnectionClosed` to tell apart normal connection termination from errors. Added :func:`~auth.basic_auth_protocol_factory` to enforce HTTP Basic Auth on the server side. :func:`~client.connect` handles redirects from the server during the handshake. :func:`~client.connect` supports overriding host and port. Added :func:`~client.unix_connect` for connecting to Unix sockets. Improved support for sending fragmented messages by accepting asynchronous iterators in :meth:`~protocol.WebSocketCommonProtocol.send`. Prevented spurious log messages about :exc:`~exceptions.ConnectionClosed` exceptions in keepalive ping task. If you were using ping_timeout=None as a workaround, you can remove it. Changed :meth:`WebSocketServer.close() ` to perform a proper closing handshake instead of failing the connection. Avoided a crash when a extra_headers callable returns None. Improved error messages when HTTP parsing fails. Enabled readline in the interactive client. Added type hints (PEP 484). Added a FAQ to the documentation. Added documentation for extensions. Documented how to optimize memory usage. Improved API documentation. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2018/11/06 14:31:48 adam Exp $ d3 1 a3 1 DISTNAME= websockets-8.1 @ 1.8 log @py-websockets: updated to 7.0 7.0: websockets sends Ping frames at regular intervals and closes the connection if it doesn't receive a matching Pong frame. See :class:~protocol.WebSocketCommonProtocol for details. Added process_request and select_subprotocol arguments to :func:~server.serve() and :class:~server.WebSocketServerProtocol to customize :meth:~server.WebSocketServerProtocol.process_request and :meth:~server.WebSocketServerProtocol.select_subprotocol without subclassing :class:~server.WebSocketServerProtocol Added support for sending fragmented messages. Added the :meth:~protocol.WebSocketCommonProtocol.wait_closed method to protocols. Added an interactive client: python -m websockets . Changed the origins argument to represent the lack of an origin with None rather than ''. Fixed a data loss bug in :meth:~protocol.WebSocketCommonProtocol.recv: canceling it at the wrong time could result in messages being dropped. Improved handling of multiple HTTP headers with the same name. Improved error messages when a required HTTP header is missing. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2018/09/07 11:26:42 adam Exp $ d3 1 a3 1 DISTNAME= websockets-7.0 a15 11 PLIST_VARS+= py35 py36 .if !empty(_PYTHON_VERSION:M35) PLIST.py35= yes .endif .if !empty(_PYTHON_VERSION:M3[67]) PLIST.py35= yes PLIST.py36= yes .endif @ 1.7 log @py-websockets: updated to 6.0 6.0: Warning Version 6.0 introduces the :class:~http.Headers class for managing HTTP headers and changes several public APIs: :meth:~server.WebSocketServerProtocol.process_request now receives a :class:~http.Headers instead of a :class:~http.client.HTTPMessage in the request_headers argument. The :attr:~protocol.WebSocketCommonProtocol.request_headers and :attr:~protocol.WebSocketCommonProtocol.response_headers attributes of :class:~protocol.WebSocketCommonProtocol are :class:~http.Headers instead of :class:~http.client.HTTPMessage. The :attr:~protocol.WebSocketCommonProtocol.raw_request_headers and :attr:~protocol.WebSocketCommonProtocol.raw_response_headers attributes of :class:~protocol.WebSocketCommonProtocol are removed. Use :meth:~http.Headers.raw_items instead. Functions defined in the :mod:~handshake module now receive :class:~http.Headers in argument instead of get_header or set_header functions. This affects libraries that rely on low-level APIs. Functions defined in the :mod:~http module now return HTTP headers as :class:~http.Headers instead of lists of (name, value) pairs. Note that :class:~http.Headers and :class:~http.client.HTTPMessage provide similar APIs. Also: Added compatibility with Python 3.7. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2018/07/06 08:04:21 adam Exp $ d3 1 a3 1 DISTNAME= websockets-6.0 @ 1.6 log @Fix building with Python 3.7 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2018/06/18 10:46:26 adam Exp $ d3 1 a3 1 DISTNAME= websockets-5.0.1 @ 1.5 log @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. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2017/11/03 11:17:21 adam Exp $ d22 1 a22 1 .if !empty(_PYTHON_VERSION:M36) @ 1.4 log @py-websockets: updated to 4.0.1 4.0: Warning: Version 4.0 enables compression with the permessage-deflate extension. In August 2017, Firefox and Chrome support it, but not Safari and IE. Compression should improve performance but it increases RAM and CPU use. If you want to disable compression, add compression=None when calling :func:`~server.serve()` or :func:`~client.connect()`. Warning: Version 4.0 removes the ``state_name`` attribute of protocols. Use protocol.state.name instead of protocol.state_name. Also: :class:`~protocol.WebSocketCommonProtocol` instances can be used as asynchronous iterators on Python ≥ 3.6. They yield incoming messages. Added :func:`~websockets.server.unix_serve` for listening on Unix sockets. Added the :attr:`~websockets.server.WebSocketServer.sockets` attribute. Reorganized and extended documentation. Aborted connections if they don't close within the configured timeout. Rewrote connection termination to increase robustness in edge cases. Stopped leaking pending tasks when :meth:`~asyncio.Task.cancel` is called on a connection while it's being closed. Reduced verbosity of "Failing the WebSocket connection" logs. Allowed extra_headers to override Server and User-Agent headers. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2017/08/22 08:47:50 adam Exp $ d3 1 a3 1 DISTNAME= websockets-4.0.1 @ 1.3 log @3.4: Renamed :func:`~websockets.server.serve()` and :func:`~websockets.client.connect()`'s klass argument to create_protocol to reflect that it can also be a callable. For backwards compatibility, klass is still supported. :func:`~websockets.server.serve` can be used as an asynchronous context manager on Python ≥ 3.5. Added support for customizing handling of incoming connections with :meth:`~websockets.server.WebSocketServerProtocol.process_request()`. Made read and write buffer sizes configurable. Rewrote HTTP handling for simplicity and performance. Added an optional C extension to speed up low level operations. An invalid response status code during :func:`~websockets.client.connect` now raises :class:`~websockets.exceptions.InvalidStatusCode` with a code attribute. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2017/07/01 22:13:55 joerg Exp $ d3 1 a3 1 DISTNAME= websockets-3.4 d13 1 a13 1 PYTHON_VERSIONS_ACCEPTED= 36 35 34 d17 1 a17 1 PLIST_VARS+= py35p d19 6 a24 2 .if empty(_PYTHON_VERSION:M34*) PLIST.py35p= yes @ 1.2 log @Deal with PLIST differences for Python 3.4. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2017/06/24 07:30:18 adam Exp $ d3 1 a3 1 DISTNAME= websockets-3.3 @ 1.1 log @websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity. It passes the Autobahn Testsuite. Built on top of Python's asynchronous I/O support introduced in PEP 3156, it provides an API based on coroutines, making it easy to write highly concurrent applications. @ text @d1 1 a1 1 # $NetBSD$ d16 7 @