aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2019-09-14Implement backpressure on cowboy_req:stream_bodyLoïc Hoguin
This should limit the amount of memory that Cowboy is using when a handler is sending data much faster than the network. The new max_stream_buffer_size is a soft limit and only has an effect when the cowboy_stream_h handler is used.
2019-09-07Improve the cowboy_static consistency across platformsLoïc Hoguin
As a result we explictly reject path_info components that include a forward slash, backward slash or NUL character. This only applies to the [...] part of the path for dir/priv_dir configuration. Also improve the tests so that they work on Windows.
2019-09-06Fix tests failing following Gun update to masterLoïc Hoguin
2019-09-06Rename Gun's transport_opts to tls_optsLoïc Hoguin
2019-09-06Correct tests modifying mtime of static filesLoïc Hoguin
On macOS this resulted in failure because the mtime did not change between test groups. The mtime should now always change.
2019-09-06Fix using custom fields in ReqLoïc Hoguin
2019-09-05Fix and optimize sending of WINDOW_UPDATE framesLoïc Hoguin
For long-running connections it was possible for the connection window to become larger than allowed by the protocol because the window increases claimed by stream handlers were never reclaimed even if no data was consumed. The new code applies heuristics to fix this and reduce the number of WINDOW_UPDATE frames that are sent. It includes six new options to control that behavior: margin, max and threshold for both the connection and stream windows. The margin is some extra space added on top of the requested read size. The max is the maximum window size at any given time. The threshold is a minimum window size that must be reached before we even consider sending more WINDOW_UPDATE frames. We also avoid sending WINDOW_UPDATE frames when there is already enough space in the window, or when the read size is 0. Cowlib is set to master until a new tag is done.
2019-07-26Add a zero-length DATA frame in the lingering_data testTony Han
2019-07-16Data received after RST_STREAM counts toward windowTony Han
2019-04-01Fallback to host header if authority is missingFredrik Enestad
2019-04-01Add a cowboy_static test with an uppercase filename/extensionLoïc Hoguin
2019-03-10Don't error out when h2spec can't be compiledLoïc Hoguin
2018-11-22Improve the reliability of some http_SUITE testsLoïc Hoguin
2018-11-22Fix compress buffering tests before OTP 20.1Loïc Hoguin
2018-11-22Move the final old HTTP suite tests and remove itLoïc Hoguin
2018-11-21Move many old HTTP test cases to the rest_handler test suiteLoïc Hoguin
A bug was fixed in cowboy_rest where when content_types_provided returned a media type with a wildcard as first in the list, and a request comes in without an accept header, then the media_type value in the Req object would contain '*' instead of [] for the parameters.
2018-11-21Move a old HTTP test cases to new plain_handler test suiteLoïc Hoguin
2018-11-21Rename sec_SUITE to security_SUITELoïc Hoguin
2018-11-21Move one more old HTTP test caseLoïc Hoguin
2018-11-21Move some more tests out of the old HTTP test suiteLoïc Hoguin
2018-11-21Create a security test suite based on old HTTP test casesLoïc Hoguin
2018-11-21Move another test from the old HTTP test suiteLoïc Hoguin
2018-11-21Move some tests out of the old HTTP test suiteLoïc Hoguin
And additional minor tweaks.
2018-11-20Move HTTP/1.0 tests from the old test suite to rfc7230Loïc Hoguin
2018-11-20Silence expected warnings for messages from unknown processesLoïc Hoguin
2018-11-20Silence the expected set_env_missing errorLoïc Hoguin
2018-11-20Increase a few more timeouts to reduce intermittent failuresLoïc Hoguin
2018-11-20Fix the request_timeout_infinity testLoïc Hoguin
Wrong option was being tested.
2018-11-20Don't run long test suites by defaultLoïc Hoguin
The examples test suite is only useful once in a while in order to know whether examples were broken, for example before issuing a release. The new ws_autobahn test suite isolates the autobahn test suite so that it can be ignored by default. It's only useful to run it when working on the Websocket code or before issuing a release.
2018-11-20Handle a test case sometimes sending a response too fastLoïc Hoguin
2018-11-20Wait for the connection to be up in a few testsLoïc Hoguin
2018-11-20Increase a test timeout to get rid of intermittent failuresLoïc Hoguin
2018-11-19Fix case insensitive filesystems in static_handler test suiteLoïc Hoguin
2018-11-19Silence expected errors from the stream_handler test suite2.6.0Loïc Hoguin
2018-11-19Add an additional test to the static test suiteLoïc Hoguin
2018-11-19Silence expected errors from the static_handler test suiteLoïc Hoguin
2018-11-19Use try..after in tests that start their own listenersLoïc Hoguin
2018-11-19Use ?FUNCTION_NAME instead of ct_helper:name()Loïc Hoguin
Cowboy is 19+ so it's OK to use it.
2018-11-18Add the chunked option for HTTP/1.1Loïc Hoguin
It allows disabling the chunked transfer-encoding. It can also be disabled on a per-request basis, although it will be ignored for responses that are not streamed.
2018-11-16Add the idle_timeout option to HTTP/2Loïc Hoguin
2018-11-16Add the set_options Websocket commandLoïc Hoguin
It allows overriding the idle_timeout option only for now.
2018-11-16Ensure unknown options are ignored in set_options commandLoïc Hoguin
2018-11-16Allow overriding cowboy_http's idle_timeout per requestLoïc Hoguin
This allows requests that expect to run longer to do so without impacting the configuration of other requests.
2018-11-15Add the set_options stream handler commandLoïc Hoguin
The first two options to benefit from this are the cowboy_compress_h options.
2018-11-15Add a compress_buffering option to cowboy_compress_hLoïc Hoguin
Also changes the behavior to disable buffering by default, so that the default works in all cases, including server-sent events.
2018-11-14Don't send the content-length header in empty 304 responsesLoïc Hoguin
It's OK to send it when set explicitly, as it can be set to what the representation's size would have been.
2018-11-14Ignore the boundary parameter when accepting multipartLoïc Hoguin
2018-11-14Allow disabling keep-alive for HTTP/1.0 connectionsLoïc Hoguin
2018-11-14Don't send an unnecessary content-type header with cowboy_restLoïc Hoguin
2018-11-13Remove two unnecessary debug callsLoïc Hoguin