diff options
author | Loïc Hoguin <[email protected]> | 2012-04-29 01:20:24 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-04-29 15:22:20 +0200 |
commit | ee8c50c5ab97dcaebc8932d093741fdb496e00f7 (patch) | |
tree | 8e2b4e48361681cad25042ba85a22187ec452154 /test/http_handler_long_polling.erl | |
parent | 845d306df68f37bb5246b0ce21b2a70456f042c4 (diff) | |
download | cowboy-ee8c50c5ab97dcaebc8932d093741fdb496e00f7.tar.gz cowboy-ee8c50c5ab97dcaebc8932d093741fdb496e00f7.tar.bz2 cowboy-ee8c50c5ab97dcaebc8932d093741fdb496e00f7.zip |
Fix and rework the HTTP test suite
Use a proper HTTP client to run all tests. This client is currently
undocumented and should not be used.
Includes a few fixes:
* Fix a bug in the max_keepalive test
* Fix a bug with max_keepalive handling
* Fix a bug in stream_body/1 where data was lost under some conditions
The tests now run quite faster than before.
All the tests now run twice: once for TCP, once for SSL.
Diffstat (limited to 'test/http_handler_long_polling.erl')
-rw-r--r-- | test/http_handler_long_polling.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_handler_long_polling.erl b/test/http_handler_long_polling.erl index e838619..8d08265 100644 --- a/test/http_handler_long_polling.erl +++ b/test/http_handler_long_polling.erl @@ -6,7 +6,7 @@ init({_Transport, http}, Req, _Opts) -> erlang:send_after(500, self(), timeout), - {loop, Req, 9, 5000, hibernate}. + {loop, Req, 5, 5000, hibernate}. handle(_Req, _State) -> exit(badarg). |