Skip to content

Commit

Permalink
Gun 2.0.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed May 24, 2021
1 parent fe25965 commit f917599
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PROJECT = gun
PROJECT_DESCRIPTION = HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
PROJECT_VERSION = 2.0.0-rc.1
PROJECT_VERSION = 2.0.0-rc.2

# Options.

Expand All @@ -14,13 +14,13 @@ CT_OPTS += -ct_hooks gun_ct_hook [] # -boot start_sasl
LOCAL_DEPS = ssl

DEPS = cowlib
dep_cowlib = git https://github.com/ninenines/cowlib master
dep_cowlib = git https://github.com/ninenines/cowlib 2.11.0

DOC_DEPS = asciideck

TEST_DEPS = $(if $(CI_ERLANG_MK),ci.erlang.mk) ct_helper cowboy ranch
dep_ct_helper = git https://github.com/extend/ct_helper.git master
dep_cowboy_commit = master
dep_cowboy_commit = 2.9.0
dep_ranch_commit = 2.0.0

# CI configuration.
Expand Down Expand Up @@ -155,3 +155,10 @@ prepare_tag:
echo $$f:; \
grep == $$f; \
done
$(verbose) echo
$(verbose) echo "Dependencies:"
$(verbose) grep ^DEPS Makefile || echo "DEPS ="
$(verbose) grep ^dep_ Makefile || true
$(verbose) echo
$(verbose) echo "rebar.config:"
$(verbose) cat rebar.config || true
19 changes: 18 additions & 1 deletion doc/src/guide/migrating_from_1.3.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Gun 2.0 adds many more features such as Websocket over
HTTP/2, a built-in cookie store, graceful shutdown, flow
control for data messages, event handlers and more.

Gun 2.0 also introduces an experimental pool module that
automatically maintains connections and routes requests
to the right process, in a similar way as browsers do.

Gun 2.0 greatly improves the HTTP/2 performance when it
comes to receiving large response bodies; and when receiving
response bodies from many separate requests concurrently.
Expand Down Expand Up @@ -135,7 +139,20 @@ Gun 2.0 requires Erlang/OTP 22.0 or greater.
(for example during state transitions when switching
protocols or connecting to proxies).

* Update Cowlib to 2.10.1.
* Update Cowlib to 2.11.0.

=== Experimental features added

* The `gun_pool` module was introduced. Its interface
is very similar to the `gun` module, but as it is an
experimental feature, it has not been documented yet.
The intent is to obtain feedback and document it in
an upcoming minor release. Pools are created for each
authority (host/port) and scope (user-defined value)
pairs and are resolved accordingly using the information
provided in the request and request options. Connections
may concurrently handle multiple requests/responses
from as many different processes as required.

=== Features removed

Expand Down
2 changes: 1 addition & 1 deletion ebin/gun.app
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, 'gun', [
{description, "HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP."},
{vsn, "2.0.0-rc.1"},
{vsn, "2.0.0-rc.2"},
{modules, ['gun','gun_app','gun_conns_sup','gun_content_handler','gun_cookies','gun_cookies_list','gun_data_h','gun_default_event_h','gun_event','gun_http','gun_http2','gun_pool','gun_pool_events_h','gun_pools_sup','gun_protocols','gun_public_suffix','gun_raw','gun_socks','gun_sse_h','gun_sup','gun_tcp','gun_tcp_proxy','gun_tls','gun_tls_proxy','gun_tls_proxy_cb','gun_tls_proxy_http2_connect','gun_tunnel','gun_ws','gun_ws_h']},
{registered, [gun_sup]},
{applications, [kernel,stdlib,ssl,cowlib]},
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{deps, [
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.10.1"}}
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.11.0"}}
]}.
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard]}.

0 comments on commit f917599

Please sign in to comment.