Closed nichita-pasecinic closed 3 weeks ago
Hi 👋,
children = [ Plug.Cowboy.child_spec( scheme: :http, plug: WSServer.Router, options: [ dispatch: dispatch(), port: port(), transport_options: [ num_acceptors: 2, max_connections: 16_384 # => default ], protocol_options: [ idle_timeout: 1000 # => not getting applied ] ] ) ]
But is getting applied inside SocketHandler init callback
init
def init(req, state) do Logger.info("[SocketHandler] init") dbg({req, state}) state = %{registry_key: req.path} {:cowboy_websocket, req, state, %{idle_timeout: :infinity}} end
Is there anything I'm missing ?
How are you measuring it? The idle timeout on the config is for http, not websockets.
Hi 👋,
But is getting applied inside SocketHandler
init
callbackIs there anything I'm missing ?