diff options
author | Loïc Hoguin <[email protected]> | 2017-05-03 17:44:00 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-05-03 17:44:00 +0200 |
commit | 95d2855f62aa31cfc65f270811c71edc43476aff (patch) | |
tree | 215a85cbfb5e2148a81f8ae9061157eb29820d88 /test/loop_handler_SUITE.erl | |
parent | 73b4eb94ff8c5bf98b3e2faae22ee207c234bb38 (diff) | |
download | cowboy-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 'test/loop_handler_SUITE.erl')
-rw-r--r-- | test/loop_handler_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/loop_handler_SUITE.erl b/test/loop_handler_SUITE.erl index 5feb032..6e7993f 100644 --- a/test/loop_handler_SUITE.erl +++ b/test/loop_handler_SUITE.erl @@ -83,9 +83,9 @@ loop_body(Config) -> {response, fin, 200, _} = gun:await(ConnPid, Ref), ok. -loop_timeout(Config) -> - doc("Ensure that the loop handler timeout results in a 204 response."), +loop_request_timeout(Config) -> + doc("Ensure that the request_timeout isn't applied when a request is ongoing."), ConnPid = gun_open(Config), Ref = gun:get(ConnPid, "/loop_timeout", [{<<"accept-encoding">>, <<"gzip">>}]), - {response, fin, 204, _} = gun:await(ConnPid, Ref), + {response, nofin, 200, _} = gun:await(ConnPid, Ref, 10000), ok. |