Loïc Hoguin
28d3515d71
Remove a bunch of todos
2018-04-30 18:39:27 +02:00
Loïc Hoguin
5d5f3f8461
Update Cowboy to 2.4.0
2018-04-30 15:12:09 +02:00
Loïc Hoguin
42439b93db
Update Cowlib to 2.3.0
2018-04-30 15:11:06 +02:00
Loïc Hoguin
3ebd01805f
Fix some intermittent test issues in rfc7540
2018-04-30 14:23:38 +02:00
Loïc Hoguin
7d4791b32c
Fix some rfc7540 tests that had an empty :path
2018-04-30 13:48:34 +02:00
Loïc Hoguin
658620019c
Reduce the time we wait during h2spec requests
2018-04-30 13:48:09 +02:00
Loïc Hoguin
8d1f468ac0
Reject HTTP/2 requests with a body size different than content-length
2018-04-30 13:47:33 +02:00
Loïc Hoguin
17349fafc2
Add tests for rejecting streams depending on themselves
2018-04-29 20:32:36 +02:00
Loïc Hoguin
84b4128d06
Receive and ignore HTTP/2 request trailers if any
...
This is a first step toward properly supporting request trailers.
2018-04-29 17:39:48 +02:00
Loïc Hoguin
2db5ffbf84
Add SETTINGS ack timeout and option settings_timeout
2018-04-28 11:00:50 +02:00
Loïc Hoguin
add71bfb7e
Fix intermittent test failures for rfc7540
2018-04-28 00:53:12 +02:00
Loïc Hoguin
3d6bb01d5f
Reject WINDOW_UPDATE frames sent after an RST_STREAM
2018-04-27 20:45:34 +02:00
Loïc Hoguin
5d5a00c863
Fix an rfc7540 test to have a different error reason
2018-04-27 20:19:02 +02:00
Loïc Hoguin
9a29aea148
Add options controlling maximum h2 frame sizes
2018-04-27 17:58:37 +02:00
Loïc Hoguin
d38d86c4a9
Add options controlling initial control flow windows
2018-04-26 22:08:05 +02:00
Loïc Hoguin
b2f16d462a
Fix building of h2spec on FreeBSD
2018-04-26 13:05:40 +02:00
Loïc Hoguin
7373822b86
Add the max_concurrent_streams h2 option
2018-04-25 21:32:58 +02:00
Loïc Hoguin
8bd55941aa
Fix the h2spec git URL
2018-04-25 18:21:56 +02:00
Loïc Hoguin
8f4adf437c
Add options to control h2's SETTINGS_HEADER_TABLE_SIZE
2018-04-25 16:55:52 +02:00
Loïc Hoguin
bc79529b4d
Build h2spec automatically when running tests
2018-04-25 12:07:44 +02:00
Loïc Hoguin
8b9a09c9fe
HTTP/2 informational responses don't end the stream
2018-04-23 15:49:34 +02:00
Loïc Hoguin
9af8b0d23a
Add missing enable_connect_protocol in typespecs
2018-04-23 14:34:53 +02:00
Loïc Hoguin
29234292e0
Add a Websocket test with 3000 connections
...
To ensure the connections are not limited by max_connections.
2018-04-17 18:54:47 +02:00
Loïc Hoguin
7c366986d5
Update Ranch to 1.5.0
2018-04-10 13:43:50 +02:00
Loïc Hoguin
ac349120f6
Depend on Cowlib master for now
2018-04-06 17:39:48 +02:00
getong
8be6667a85
update doc
2018-04-05 20:12:18 +02:00
Loïc Hoguin
adf1a40287
Fix Dialyzer warnings
2018-04-04 17:34:10 +02:00
Loïc Hoguin
bbfc1569cc
Add initial implementation of Websocket over HTTP/2
...
Using the current draft:
https://tools.ietf.org/html/draft-ietf-httpbis-h2-websockets-01
2018-04-04 17:23:37 +02:00
Loïc Hoguin
a7b06f2e13
Tentatively update Cowboy to 2.3.0
2018-03-28 18:15:40 +02:00
Loïc Hoguin
28f8b0f29a
Update Cowlib to 2.2.1
2018-03-28 18:12:37 +02:00
Kirill Kinduk
4c34774b7e
Add max_frame_size option for websocket handlers
...
Option allows to limit a frame by size before decoding its payload.
LH: I have added a test for when the limit is reached on a nofin
fragmented frame (the last commit addressed that case but it had
no test). I have fixed formatting and other, and changed the
default value to infinity since it might otherwise be incompatible
with existing code. I also added documentation and a bunch of other
minor changes.
2018-03-28 16:58:02 +02:00
Gary Rennie
288deb5b88
Remove duplicate keys from map in inform docs
...
This is the equivalent way of doing the same thing using a single header.
2018-03-27 23:10:27 +02:00
Loïc Hoguin
5f0123eddb
Add the remaining sys tests
2018-03-27 23:03:26 +02:00
Loïc Hoguin
9f9bd5ef56
Add more sys tests
2018-03-27 00:58:15 +02:00
Loïc Hoguin
5964273cc4
Fix the flushing of messages when switching to Websocket
...
We now flush messages that are specific to cowboy_http only.
Stream handlers should also flush their own specific messages
if necessary, although timeouts will be flushed regardless
of where they originate from.
Also renames the http_SUITE to old_http_SUITE to distinguish
new tests from old tests. Most old tests need to be removed
or converted eventually as they're legacy tests from Cowboy 1.0.
2018-03-26 18:53:07 +02:00
Loïc Hoguin
4d5174632c
Add initial support for system messages in cowboy_loop
2018-03-23 18:33:16 +01:00
Loïc Hoguin
21c9c66971
Merge the two separate receive loops in cowboy_websocket
...
Also rename a bunch of functions to make the code easier to read.
2018-03-23 16:32:53 +01:00
Loïc Hoguin
31092b546c
Add RFC 8336 to the list
2018-03-23 16:22:04 +01:00
Loïc Hoguin
ac07dbeb04
Update rebar.config
2018-03-22 15:32:42 +01:00
Loïc Hoguin
6945882cd3
Fix a Dialyzer warning
2018-03-14 17:43:13 +01:00
Bartek Walkowicz
2131709328
Add case for handling infinity for idle/request_timeout
...
Currently cowboy assumes that idle_timeout or request_timeout is
a number and always starts timers. Similar situation takes place
in case of preface_timeout for http2. This commit adds case for
handling infinity as a timeout, allowing to not start mentioned
timers.
2018-03-14 17:15:06 +01:00
Loïc Hoguin
f9092126fa
Handle system messages in cowboy_websocket
2018-03-13 11:19:13 +01:00
Loïc Hoguin
b9c8d86502
Handle supervisor calls properly everywhere
2018-03-13 10:40:14 +01:00
Loïc Hoguin
a89732e8e0
Initial work on the sys_SUITE
...
There's already tests failing and quite some refactoring to be
done to make some things easier to test or fix issues.
2018-03-12 16:52:02 +01:00
Loïc Hoguin
e4f1c332a3
Add a test suite for RFC7538; update Cowlib to 2.2.0
...
This adds the 308 status code and fixes a few small
parsing bugs.
2018-03-05 16:48:56 +01:00
Loïc Hoguin
b47b511cbe
Enable ci.erlang.mk only when CI_ERLANG_MK=1 is set
...
This will avoid issues with other people's build systems.
2018-02-28 17:44:23 +01:00
Loïc Hoguin
19054e40e0
Fix crash in cowboy_http2 when content-length is invalid
2018-02-28 16:18:29 +01:00
Loïc Hoguin
e23e12287a
Add a new relevant RFC
2018-02-15 23:33:04 +01:00
Loïc Hoguin
cbd64e617a
Add link to the PROXY protocol to the specs
...
It's very relevant even though I will probably not implement it.
2018-02-09 18:15:37 +01:00
Loïc Hoguin
50fd64ec34
Add an example with a Websocket close frame
...
Thanks benbro!
2018-01-29 13:03:42 +01:00