UserSocket CONNECT is spammed

Hi, im struggling a bit with what seems to be a socke connection spam, and I’m unsure if im doing anything wrong, or is this just a normal reconnect cycle?

I have a user socket that each user connects to. This socket has a corresponding channel. I.e. one user in each channel.

I have about 200 connected users, and that number seems stable. However the logs are constantly spammed with CONNECTED to UserSocket. Also, a GET call is done periodicaly to “/” which I have no idea where comes from. The frontend does not do it on purpose (if its not baked into phoenix.js)

Does anyone know whats going on? Adding a copy of about one second of activity in my log

08:53:27.946 request_id= [info] GET /
08:53:27.946 request_id= [info] Sent 404 in 191µs
08:53:28.256 [info] CONNECTED TO KollegaWeb.UserSocket in 6ms
  Transport: :websocket
  Serializer: Phoenix.Socket.V2.JSONSerializer
  Parameters: %{"userToken" => "QM", "vsn" => "2.0.0"}
08:53:28.293 [info] JOINED user: in 57µs
  Parameters: %{}
08:53:30.557 request_id=-r-J4AHP1B [info] GET /
08:53:30.558 request_id=-r-J4AHP1B [info] Sent 404 in 403µs
08:53:30.565 [info] CONNECTED TO KollegaWeb.UserSocket in 5ms
  Transport: :websocket
  Serializer: Phoenix.Socket.V2.JSONSerializer
  Parameters: %{"userToken" => "**", "vsn" => "2.0.0"}
08:53:30.577 [info] JOINED user: in 20µs
  Parameters: %{}
08:53:31.630 [info] CONNECTED TO KollegaWeb.UserSocket in 5ms
  Transport: :websocket
  Serializer: Phoenix.Socket.V2.JSONSerializer
  Parameters: %{"userToken" => "**", "vsn" => "2.0.0"}
08:53:31.643 [info] JOINED user:** in 22µs
  Parameters: %{}

It was an nginx time outissue. I had to set this in the nginx config

location /
..
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
..