0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/test
Loïc Hoguin a013becc66 Add protection against slowloris vulnerability
This changes the behavior of the `timeout` protocol option to
mean "Time in which the full request line and headers must be
received". The default of 5s should be fine for all normal uses.

This change has no noticeable impact on performance and is thus
enabled by default for everyone. It can be disabled by setting
`timeout` to `infinity` although that is definitely not encouraged.

Inspired by the contribution from @naryl on github.
2013-01-06 19:49:01 +01:00
..
autobahn_SUITE_data Use ct_run instead of rebar ct for running ct tests 2013-01-04 17:56:49 +01:00
http_SUITE_data Initial work on a ct test suite for the HTTP protocol. 2011-04-08 16:30:37 +02:00
autobahn_SUITE.erl Add middleware support 2013-01-03 22:47:51 +01:00
chunked_handler.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
cover.spec Use ct_run instead of rebar ct for running ct tests 2013-01-04 17:56:49 +01:00
eunit_SUITE.erl Fix a small warning in eunit_SUITE 2013-01-05 23:35:13 +01:00
http_handler.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_echo_body.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_errors.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_init_shutdown.erl Don't use decode_packet/3 for parsing the headers 2012-09-21 09:18:56 +02:00
http_handler_long_polling.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_loop_timeout.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_multipart.erl Improve consistency of return types for cowboy_req API 2012-09-17 13:56:58 +02:00
http_handler_set_resp.erl Don't use decode_packet/3 for parsing the headers 2012-09-21 09:18:56 +02:00
http_handler_stream_body.erl Add cowboy_req:set_resp_body_fun/2 2013-01-05 23:35:30 +01:00
http_SUITE.erl Add protection against slowloris vulnerability 2013-01-06 19:49:01 +01:00
rest_expires.erl Remove the dependency on httpd_util 2012-12-03 15:57:27 +01:00
rest_forbidden_resource.erl Don't use decode_packet/3 for parsing the request-line 2012-09-21 08:54:57 +02:00
rest_missing_callbacks.erl Add a better error message when user callbacks are not exported 2012-11-29 16:15:28 +01:00
rest_nodelete_resource.erl Don't use decode_packet/3 for parsing the request-line 2012-09-21 08:54:57 +02:00
rest_resource_etags.erl Rename cowboy_http_rest to cowboy_rest 2012-08-27 13:39:59 +02:00
rest_simple_resource.erl Rename cowboy_http_rest to cowboy_rest 2012-08-27 13:39:59 +02:00
websocket_echo_handler.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00
websocket_handler.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00
websocket_handler_init_shutdown.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00
ws_send_many_handler.erl Add more frame types available in websocket replies 2012-12-02 21:37:24 +01:00
ws_SUITE.erl Hello 2013 2013-01-04 15:10:03 +01:00
ws_timeout_cancel_handler.erl Cancel timer only on websocket_data receives or sends 2012-12-22 18:32:15 +01:00
ws_timeout_hibernate_handler.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00
ws_upgrade_with_opts_handler.erl Allow passing the Req and an updated Opts when upgrading protocols 2012-12-03 15:52:09 +01:00