mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-05 07:31:49 -05:00
There's a race between our `ws_connect` and `ws_receive` methods; it's possible to fall into a scenario where we're handling a legitimate message *before* django-channels is able to persist the `user_id` into the channel session. This results in a scenario where a user can open a browser tab and never receive new websocket messages. In this scenario, we should just toss the message back into the queue and try again later (up to a reasonable limit of retries).