Repository navigation
0.344.0
This release fixes connection initialisation on the legacy graphql-ws
WebSocket protocol and async overrides of the WebSocket origin check.
- A repeated
connection_initmessage on agraphql-wsconnection is now
ignored. Previously each one replaced theconnection_paramsthat running
operations read beforeon_ws_connecthad checked them, called
on_ws_connectagain and started another keep-alive task. connection_init_wait_timeoutnow applies tographql-wstoo. A connection
that doesn't sendconnection_initin time is closed with code4408, as on
graphql-transport-ws. Previously it stayed open indefinitely.- An override of
is_websocket_origin_allowedthat returns an awaitable, such
as one written asasync def, now rejects the handshake and logs an error
naming the method. Previously the coroutine it returned counted asTrue,
so every origin was accepted. The hook must be a regular method.
See the 0.344.0 breaking changes
for what to check when upgrading.
This release was contributed by @patrick91 in #4845
Additional contributors: @ampagent