Hello,
I noticed a weird thing during a deployment of a service that uses channels at
work the other day. We use docker, so we have a container for daphne and
a container for workers (currently 4). We start a service that some
other machines connect to almost automatically (reconnecting etc), and
we also patched some of the auth stuff wrote to do authentication
based on HTTP headers. So, in order to connect, you must have a header
that is recognized, or else you are disconnected.
So,
after the service was up, the reconnecting client was reporting that it
was connected, but he did not get the response (the response is sent
from the 'websocket.connect' consumer). Which means that he did connect,
but none of the auth code had ran. The reason was that daphne
had started before the workers, so we had docker set up the workers first and then daphne.
Is this expected behaviour or a bug? I guess it can be considered as a security bug, but not really sure.
Thanks!