aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cowboy_http.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-05-03 17:44:00 +0200
committerLoïc Hoguin <[email protected]>2017-05-03 17:44:00 +0200
commit95d2855f62aa31cfc65f270811c71edc43476aff (patch)
tree215a85cbfb5e2148a81f8ae9061157eb29820d88 /doc/src/manual/cowboy_http.asciidoc
parent73b4eb94ff8c5bf98b3e2faae22ee207c234bb38 (diff)
downloadcowboy-95d2855f62aa31cfc65f270811c71edc43476aff.tar.gz
cowboy-95d2855f62aa31cfc65f270811c71edc43476aff.tar.bz2
cowboy-95d2855f62aa31cfc65f270811c71edc43476aff.zip
Add the idle_timeout HTTP/1.1 protocol option
This fixes the connection being dropped because of request_timeout despite there being some active streams.
Diffstat (limited to 'doc/src/manual/cowboy_http.asciidoc')
-rw-r--r--doc/src/manual/cowboy_http.asciidoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/manual/cowboy_http.asciidoc b/doc/src/manual/cowboy_http.asciidoc
index b792c1a..949fa88 100644
--- a/doc/src/manual/cowboy_http.asciidoc
+++ b/doc/src/manual/cowboy_http.asciidoc
@@ -15,6 +15,7 @@ as a Ranch protocol.
----
opts() :: #{
env := cowboy_middleware:env(),
+ idle_timeout := timeout(),
max_empty_lines := non_neg_integer(),
max_header_name_length := non_neg_integer(),
max_header_value_length := non_neg_integer(),
@@ -43,6 +44,9 @@ The default value is given next to the option name:
env (#{})::
Middleware environment.
+idle_timeout (60000)::
+ Time in ms with no data received before Cowboy closes the connection.
+
max_empty_lines (5)::
Maximum number of empty lines before a request.