Alastair Hole
bbf36a2ac0
Minor grammar correction
...
Noun 'setup' -> verb phrase 'set up'
2019-09-05 17:15:13 +02:00
Loïc Hoguin
48f417ac8f
Fix and optimize sending of WINDOW_UPDATE frames
...
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-09-05 14:07:38 +02:00
Loïc Hoguin
aedf6379cc
Update CI to only test on OTP-20+
2019-08-29 16:59:03 +02:00
Loïc Hoguin
a0a752ab10
Gracefully shut down HTTP/2 connections on GOAWAY
2019-08-16 16:37:04 +02:00
Tony Han
22cc88bae4
Add a zero-length DATA frame in the lingering_data test
2019-07-26 10:05:30 +02:00
Loïc Hoguin
5829f1b9ac
Add more related specs
2019-07-22 10:41:04 +02:00
juhlig
5b4e78fac4
Make Cowboy compatible with upcoming Ranch 2.0
2019-07-16 15:35:45 +02:00
Tony Han
7708fc77cd
Data received after RST_STREAM counts toward window
2019-07-16 15:32:58 +02:00
Loïc Hoguin
504c7c55f7
Add two related specs
2019-07-12 10:46:49 +02:00
Loïc Hoguin
dfeec3b74a
Add two new RFCs to the list
2019-05-27 13:43:01 +02:00
Loïc Hoguin
3030c2d5c9
Fix a few examples using cert instead of certfile
2019-05-13 11:25:00 +02:00
Loïc Hoguin
8875b07b37
Add RFC 8586
2019-04-24 20:24:23 +02:00
Loïc Hoguin
d846827b2a
Cowboy 2.6.3
2019-04-05 11:09:55 +02:00
Loïc Hoguin
39a0bf4bee
Add a prepare_tag target to help with releasing
2019-04-05 11:08:33 +02:00
Loïc Hoguin
d5489b4c73
Cowboy 2.6.2
...
Updates Cowlib to 2.7.2.
2019-04-04 11:23:50 +02:00
Loïc Hoguin
6f68d7d2d6
Use Gun 1.2.0 for tests to avoid OTP-19 issues
...
And temporarily depend on Cowlib master to confirm everything
works as intended.
2019-04-03 15:53:51 +02:00
Loïc Hoguin
21d267a44a
Describe what star represent in the REST flowcharts
2019-04-03 14:08:53 +02:00
Steve Strong
bfee20e61e
Bind erlang:get_stacktrace prior to making other calls
...
If we bind too late there might be an exception triggered
in the terminate function and we will not get the correct
stacktrace as a result.
2019-04-03 13:54:32 +02:00
Ginetom
cd9b04792c
Clarify what the private directory is
2019-04-03 13:48:57 +02:00
Jesper Louis Andersen
b86e2839bc
Fix calling convention for set_resp_cookie/3
...
If not providing optional values, they are set to `#{}` and
are the last parameter according to the source code. Reflect
this in the documentation.
2019-04-02 15:40:05 +02:00
Loïc Hoguin
9edfef34b2
Add this year's April Fool's RFC
2019-04-02 11:03:55 +02:00
Fredrik Enestad
7ff9e963b8
Fallback to host header if authority is missing
2019-04-01 15:04:33 +02:00
Loïc Hoguin
705fa9755f
Add a cowboy_static test with an uppercase filename/extension
2019-04-01 15:04:33 +02:00
Loïc Hoguin
867ca66fab
Cowlib 2.7.1
2019-04-01 15:04:33 +02:00
Loïc Hoguin
459fc959b4
Add a related RFC
2019-03-25 20:27:20 +01:00
Loïc Hoguin
b9d329c026
Don't error out when h2spec can't be compiled
2019-03-10 11:21:51 +01:00
Loïc Hoguin
4918e271bd
Use Gun 1.3.0 instead of master for tests
2019-03-08 16:04:55 +01:00
Loïc Hoguin
e0254cdcb0
Cowboy 2.6.1
2018-11-28 12:15:17 +01:00
Loïc Hoguin
291d493c21
Update Ranch to 1.7.1
2018-11-28 12:11:08 +01:00
Loïc Hoguin
6f1a541fa2
Improve the reliability of some http_SUITE tests
2018-11-22 12:18:00 +01:00
Loïc Hoguin
3f5af49cfd
Fix compress buffering tests before OTP 20.1
2018-11-22 10:41:02 +01:00
Loïc Hoguin
0223f69fcd
Move the final old HTTP suite tests and remove it
2018-11-22 00:12:18 +01:00
Loïc Hoguin
037b286aa8
Move many old HTTP test cases to the rest_handler test suite
...
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-21 18:39:59 +01:00
Loïc Hoguin
800a489009
Move a old HTTP test cases to new plain_handler test suite
2018-11-21 14:29:36 +01:00
Loïc Hoguin
bbc152ba83
Rename sec_SUITE to security_SUITE
2018-11-21 14:21:14 +01:00
Loïc Hoguin
84e474d212
Move one more old HTTP test case
2018-11-21 14:06:57 +01:00
Loïc Hoguin
dc52ebe440
Move some more tests out of the old HTTP test suite
2018-11-21 13:28:20 +01:00
Loïc Hoguin
112ff607a1
Create a security test suite based on old HTTP test cases
2018-11-21 12:25:47 +01:00
Loïc Hoguin
6058800abb
Move another test from the old HTTP test suite
2018-11-21 10:47:31 +01:00
Loïc Hoguin
dc240adc1e
Move some tests out of the old HTTP test suite
...
And additional minor tweaks.
2018-11-21 10:25:01 +01:00
Loïc Hoguin
9e852b4dd2
Move HTTP/1.0 tests from the old test suite to rfc7230
2018-11-20 23:10:51 +01:00
Loïc Hoguin
18ba3c7cff
Silence expected warnings for messages from unknown processes
2018-11-20 16:25:11 +01:00
Loïc Hoguin
2915c6d98c
Silence the expected set_env_missing error
2018-11-20 16:24:56 +01:00
Loïc Hoguin
36debe707a
Increase a few more timeouts to reduce intermittent failures
2018-11-20 15:05:40 +01:00
Loïc Hoguin
0704b2fa7c
Document how to run all test suites
2018-11-20 13:28:48 +01:00
Loïc Hoguin
1a1fb95f56
Fix the request_timeout_infinity test
...
Wrong option was being tested.
2018-11-20 13:26:02 +01:00
Loïc Hoguin
7b5da29019
Don't run long test suites by default
...
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-20 13:23:59 +01:00
Loïc Hoguin
386df43ea4
Handle a test case sometimes sending a response too fast
2018-11-20 11:28:46 +01:00
Loïc Hoguin
ff674fe6e8
Wait for the connection to be up in a few tests
2018-11-20 11:28:25 +01:00
Loïc Hoguin
d12e0b55dc
Increase a test timeout to get rid of intermittent failures
2018-11-20 10:45:14 +01:00