Skip to content

Idle systems stop logging #4081

Discussion options

You must be logged in to vote

👋 @vanquishkuso

Does a prolonged idle time cause Plausible to close the connection?

Yes, Cowboy, the webserver used by Plausible, drops connections that are idle (no data sent from the client) after 60 seconds. The option is called idle_timeout

[...] is there any way to make this work?

Starting in v2.1.0-rc.1 you would be able to mount custom configs into Plausible and configure that value like this

import Config

# overrides https://github.com/plausible/analytics/blob/435d7082891004bc55e740c6810fad8f70a09b62/config/runtime.exs#L308-L313 by adding an infinite idle_timeout
config :plausible, PlausibleWeb.Endpoint,
  http: [
    port: 8000,
    ip: {0, 0, 0, 0},
    transport_options: [m…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ruslandoga
Comment options

Answer selected by vanquishkuso
Comment options

You must be logged in to vote
1 reply
@ruslandoga
Comment options

Comment options

You must be logged in to vote
1 reply
@vanquishkuso
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants