Subject: CVS commit: pkgsrc/www/py-websockets
From: Thomas Klausner
Date: 2023-05-17 00:48:21
Message id: 20230516224821.9593CFA87@cvs.NetBSD.org

Log Message:
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().

Files:
RevisionActionfile
1.19modifypkgsrc/www/py-websockets/Makefile
1.12modifypkgsrc/www/py-websockets/PLIST
1.17modifypkgsrc/www/py-websockets/distinfo