From 71aba77b1f232594e8a58c73103c565e65fcce17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 9 Sep 2019 21:06:53 +0200 Subject: Tweaks to the Gun 2.0 talk --- _build/static/talks/gun-2.0/index.html | 17 ++++++++++++----- talks/gun-2.0/index.html | 17 ++++++++++++----- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/_build/static/talks/gun-2.0/index.html b/_build/static/talks/gun-2.0/index.html index a0940100..240563fc 100644 --- a/_build/static/talks/gun-2.0/index.html +++ b/_build/static/talks/gun-2.0/index.html @@ -117,11 +117,11 @@ Ref = gun:get(Pid, "/"), Ref = gun:get(Pid, "/", [], #{flow => 1}), {response, nofin, 200, _} = gun:await(Pid, Ref) {data, nofin, _} = gun:await(Pid, Ref), -{error, timeout} = gun:await(Pid, Ref, 3000), +{error, timeout} = gun:await(Pid, Ref), gun:update_flow(Pid, Ref, 2), {data, nofin, _} = gun:await(Pid, Ref), {data, nofin, _} = gun:await(Pid, Ref), -{error, timeout} = gun:await(Pid, Ref, 1000). +{error, timeout} = gun:await(Pid, Ref).

Configurable per stream or per protocol:

@@ -137,7 +137,7 @@ gun:update_flow(Pid, Ref, 2),

 {ok, Pid} = gun:open("host.name", 443),
 {ok, _} = gun:await_up(Pid),
-Ref = gun:ws_upgrade(Pid, "/ws", []),
+Ref = gun:ws_upgrade(Pid, "/ws"),
 {upgrade, [<<"websocket">>], _} = gun:await(Pid, Ref),
 gun:ws_send(Pid, Ref, [
 	{text, <<"Hello!">>},
@@ -278,7 +278,7 @@ Ref3 = gun:get(Pid, "/"),
 
 
 
-

Cookie jar

+

Cookie jars

  • Automatic storing and retrieving of cookies
  • Jars exclusive to one connection
  • @@ -355,7 +355,14 @@ Ref3 = gun:get(Pid, "/"),
    • Contains many improvements for elixir-grpc
  • Cowboy 2.7 with many improvements for elixir-grpc
  • -
  • Ranch 2.0: num acceptors conns_sup listen_sockets
  • +
  • + Ranch 2.0: +
      +
    • num_acceptors
    • +
    • num_conns_sups
    • +
    • num_listen_sockets
    • +
    +
  • Serious work started on REST framework
diff --git a/talks/gun-2.0/index.html b/talks/gun-2.0/index.html index a0940100..240563fc 100644 --- a/talks/gun-2.0/index.html +++ b/talks/gun-2.0/index.html @@ -117,11 +117,11 @@ Ref = gun:get(Pid, "/"), Ref = gun:get(Pid, "/", [], #{flow => 1}), {response, nofin, 200, _} = gun:await(Pid, Ref) {data, nofin, _} = gun:await(Pid, Ref), -{error, timeout} = gun:await(Pid, Ref, 3000), +{error, timeout} = gun:await(Pid, Ref), gun:update_flow(Pid, Ref, 2), {data, nofin, _} = gun:await(Pid, Ref), {data, nofin, _} = gun:await(Pid, Ref), -{error, timeout} = gun:await(Pid, Ref, 1000). +{error, timeout} = gun:await(Pid, Ref).

Configurable per stream or per protocol:

@@ -137,7 +137,7 @@ gun:update_flow(Pid, Ref, 2),

 {ok, Pid} = gun:open("host.name", 443),
 {ok, _} = gun:await_up(Pid),
-Ref = gun:ws_upgrade(Pid, "/ws", []),
+Ref = gun:ws_upgrade(Pid, "/ws"),
 {upgrade, [<<"websocket">>], _} = gun:await(Pid, Ref),
 gun:ws_send(Pid, Ref, [
 	{text, <<"Hello!">>},
@@ -278,7 +278,7 @@ Ref3 = gun:get(Pid, "/"),
 
 
 
-

Cookie jar

+

Cookie jars

  • Automatic storing and retrieving of cookies
  • Jars exclusive to one connection
  • @@ -355,7 +355,14 @@ Ref3 = gun:get(Pid, "/"),
    • Contains many improvements for elixir-grpc
  • Cowboy 2.7 with many improvements for elixir-grpc
  • -
  • Ranch 2.0: num acceptors conns_sup listen_sockets
  • +
  • + Ranch 2.0: +
      +
    • num_acceptors
    • +
    • num_conns_sups
    • +
    • num_listen_sockets
    • +
    +
  • Serious work started on REST framework
-- cgit v1.2.3