0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
Commit graph

71 commits

Author SHA1 Message Date
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
d846827b2a
Cowboy 2.6.3 2019-04-05 11:09:55 +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
291d493c21
Update Ranch to 1.7.1 2018-11-28 12:11:08 +01:00
Loïc Hoguin
417032a445
Prepare the Cowboy 2.6 release 2018-11-17 13:36:14 +01:00
Loïc Hoguin
1e2d59ed26
Ranch 1.7.0 2018-11-14 12:33:43 +01:00
Loïc Hoguin
122faedc25
Initial support for the PROXY protocol header
Depend on Ranch master for now since it isn't in any release yet.
2018-10-30 23:30:54 +01:00
Loïc Hoguin
f1018fd1c1
Use cow_http2_machine's timer handling 2018-10-27 00:16:13 +02:00
getong
4493afbba0
Update Ranch to 1.6.2 2018-09-23 14:24:37 +02:00
Loïc Hoguin
9901a3b568
Update Cowlib to 2.6.0 2018-09-21 15:12:58 +02:00
Loïc Hoguin
7a36bc7488
Update Cowlib to 2.5.1 2018-09-12 15:00:48 +02:00
Loïc Hoguin
06a3a93de0
Update Ranch to 1.6.1 2018-08-13 15:07:59 +02:00
Loïc Hoguin
474cb359ce
Update erlang.mk and rebar.config 2018-05-16 12:28:55 +02:00
Loïc Hoguin
42439b93db
Update Cowlib to 2.3.0 2018-04-30 15:11:06 +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
Loïc Hoguin
28f8b0f29a
Update Cowlib to 2.2.1 2018-03-28 18:12:37 +02:00
Loïc Hoguin
ac07dbeb04
Update rebar.config 2018-03-22 15:32:42 +01:00
Loïc Hoguin
388a68fc2e
Update Cowboy to 2.2.0 2017-12-11 14:17:38 +01:00
Loïc Hoguin
52d869128b
Tweak the Makefile 2017-11-17 13:18:13 +01:00
Loïc Hoguin
5e88a9b394
Update Cowlib to 2.0.1 and fix OTP 20.1+ Websocket compression
Unfortunately compression will be disabled for 20.1, 20.1.1
and 20.1.2. In additiona I do not recommend 20.1.3 due to
issues inflating some specific sizes.
2017-11-01 15:41:52 +00:00
Loïc Hoguin
716a052b15
Update version, CI and Cowlib dependency version
Hello 2.0.0!
2017-10-03 17:10:16 +02:00
Loïc Hoguin
49d13ece19
Update rebar.config 2017-07-19 00:50:11 +02:00
Loïc Hoguin
6f7b59886e
Remove NumAcceptors argument from start_clear/tls
They are now cowboy:start_clear/3 and cowboy:start_tls/3.
The NumAcceptors argument can be specified via the
num_acceptor transport option. Ranch has been updated
to 1.4.0 to that effect.
2017-06-07 15:15:54 +02:00
Loïc Hoguin
1048bff929
Update rebar.config 2017-01-03 12:15:42 +01:00
Loïc Hoguin
faca7866ed
Partially update manual for the cowboy_req
Only the access functions have been modified so far.
2016-11-05 14:17:30 +02:00
Loïc Hoguin
2620d65fde Fix more HTTP/2 handshake test cases 2016-03-13 11:26:26 +01:00
Loïc Hoguin
837cf8b9ce Update Erlang.mk 2015-11-16 23:08:38 +01:00
Alexander Færøy
06bd01d35e
Use HTTPS dependencies when using Rebar 2015-07-05 23:31:44 +02:00
Juan Puig
050621231c Update Cowlib to 1.3.0 2015-05-06 11:16:35 +03:00
Loïc Hoguin
90ae31998e Update Cowlib to 1.2.0; adds Websocket permessage-deflate
The Websocket text frames should also be less resource intensive
to validate now, with a binary concatenation avoided.
2015-03-06 01:56:30 +01:00
Loïc Hoguin
dc8be8882c Use cow_ws for the Websocket parsing code
Updates Cowlib to 1.1.0
2015-02-16 15:48:04 +01:00
Loïc Hoguin
5cf9ac25e5 Update links extend -> ninenines 2014-08-02 12:38:15 +02:00
Loïc Hoguin
aaac973cbd Update rebar.config 2014-08-01 14:33:30 +02:00
Loïc Hoguin
c81b94160e Update Ranch to 0.10.0 2014-06-10 11:36:55 +02:00
Loïc Hoguin
6bbdbe4efa Update cowlib to 0.6.2
Fixes parsing of Google Analytics cookies.
2014-06-10 09:34:46 +02:00
Loïc Hoguin
0502452967 Update cowlib to 0.6.1 2014-03-27 11:39:09 +01:00
Loïc Hoguin
9110ee83fe Update rebar.config 2014-03-25 18:23:26 +01:00
Loïc Hoguin
340cf8581f Update cowlib to 0.5.1 to fix multipart issues 2014-02-19 19:09:58 +01:00
Loïc Hoguin
917cf99e10 Add and document the new multipart code
The old undocumented API is removed entirely.

While a documentation exists for the new API, it will not
be considered set in stone until further testing has been
performed, and a file upload example has been added.

The new API should be a little more efficient than the
old API, especially with smaller messages.
2014-02-06 19:36:25 +01:00
Loïc Hoguin
b8923de7c5 Update Ranch to 0.9.0 2013-11-14 15:32:02 +01:00
Loïc Hoguin
8d546dacbc Optimize query string parsing
*  Parsing code was moved to cowlib: cowboy_qs:parse_qs/1
 *  A function was added to build query strings: cowboy_qs:qs/1
 *  Also added cowboy_qs:urlencode/1 and cowboy_qsurldecode/1
2013-11-08 18:47:05 +01:00
Loïc Hoguin
6672ea0415 Review, improve and document the static files handler
Changes include:

 *  Much simplified route configuration.

 *  Etag generation is now enabled by default.

 *  Web mimetypes are now detected by default. A bigger list of
    mimetypes can be detected without any additional library.

 *  Mimetypes can no longer be specified as a list. Copying this
    list for new connections is too costy. You can easily convert
    it into a function and pass that function to the handler instead.

 *  You can however specify a single hardcoded mimetype. Mostly
    useful when serving a single file, like an index.html file,
    to avoid extra operations.

 *  Specifying a path as a list of tokens is not possible anymore.
    Use either a binary or a string.

 *  Using a private directory will not work if the application
    was not started properly. Cowboy will not attempt to find
    the location of this directory if the VM doesn't know it,
    as this caused issues in some setups.

 *  Overall the code has been much simplified and clarified,
    and of course has now been documented.
2013-11-02 14:41:46 +01:00
Loïc Hoguin
faf64524c6 Move cookie parsing/building code to cowlib
The code for parsing has also been rewritten to be more efficient
and to be able to handle cookie values with space inside them properly.

Update cowlib to 0.2.0.
2013-10-23 16:35:23 +02:00
Loïc Hoguin
4a30198f90 Make cowlib a proper dependency
Start moving a few functions from Cowboy into cowlib.
2013-09-04 19:24:54 +02:00
Loïc Hoguin
694c9bfbfa Update Ranch to 0.8.5 2013-08-24 20:35:28 +02:00
Loïc Hoguin
2923de944f Update Ranch to 0.8.4 2013-06-20 16:01:53 +02:00
Loïc Hoguin
3d2f7218c5 Update Ranch to 0.8.3 2013-05-16 19:10:32 +02:00
Loïc Hoguin
6e33274c85 Update Ranch to 0.8.2 and use ct_helper for testing SSL 2013-05-01 18:30:00 +02:00
Loïc Hoguin
d063511a0e Update Ranch to 0.8.1 2013-04-12 15:24:59 +02:00