Skip to content

0.344.0

Choose a tag to compare

@botberry botberry released this 03 Dec 11:20
· 2 commits to main since this release

This release fixes connection initialisation on the legacy graphql-ws
WebSocket protocol and async overrides of the WebSocket origin check.

  • A repeated connection_init message on a graphql-ws connection is now
    ignored. Previously each one replaced the connection_params that running
    operations read before on_ws_connect had checked them, called
    on_ws_connect again and started another keep-alive task.
  • connection_init_wait_timeout now applies to graphql-ws too. A connection
    that doesn't send connection_init in time is closed with code 4408, as on
    graphql-transport-ws. Previously it stayed open indefinitely.
  • An override of is_websocket_origin_allowed that returns an awaitable, such
    as one written as async def, now rejects the handshake and logs an error
    naming the method. Previously the coroutine it returned counted as True,
    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