Browse Source

Increment max_keepalive for Cowboy (#2558)

The default of 100 is a reasonable default for regular browser/client usage
but implies in reconnections in case of benchmarks (which increases in
latency) when there is no connection recycling. 

By increasing the default we can make Cowboy closer to how other
webservers behave.
José Valim 8 years ago
parent
commit
06b2c1e746
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/Elixir/phoenix/config/prod.exs

+ 1 - 1
frameworks/Elixir/phoenix/config/prod.exs

@@ -2,7 +2,7 @@ use Mix.Config
 
 config :hello, Hello.Endpoint,
   url: [host: "0.0.0.0"],
-  http: [port: 8080],
+  http: [port: 8080, protocol_options: [max_keepalive: 5_000_000]],
   cache_static_lookup: false,
   server: true