summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-09-09 21:06:53 +0200
committerLoïc Hoguin <[email protected]>2019-09-09 21:06:53 +0200
commit71aba77b1f232594e8a58c73103c565e65fcce17 (patch)
treee969839108862c86e2c87a080366687f3b2ae80e
parent9e73b9fbbf91ebcf5b8027d97275bffe77316e14 (diff)
downloadninenines.eu-71aba77b1f232594e8a58c73103c565e65fcce17.tar.gz
ninenines.eu-71aba77b1f232594e8a58c73103c565e65fcce17.tar.bz2
ninenines.eu-71aba77b1f232594e8a58c73103c565e65fcce17.zip
Tweaks to the Gun 2.0 talk
-rw-r--r--_build/static/talks/gun-2.0/index.html17
-rw-r--r--talks/gun-2.0/index.html17
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 =&gt; 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).
</code></pre>
<p>Configurable per stream or per protocol:</p>
@@ -137,7 +137,7 @@ gun:update_flow(Pid, Ref, 2),
<pre><code data-trim data-noescape>
{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, [&lt;&lt;"websocket"&gt;&gt;], _} = gun:await(Pid, Ref),
gun:ws_send(Pid, Ref, [
{text, &lt;&lt;"Hello!"&gt;&gt;},
@@ -278,7 +278,7 @@ Ref3 = gun:get(Pid, "/"),
</section>
<section>
- <h2>Cookie jar</h2>
+ <h2>Cookie jars</h2>
<ul>
<li>Automatic storing and retrieving of cookies</li>
<li>Jars exclusive to one connection</li>
@@ -355,7 +355,14 @@ Ref3 = gun:get(Pid, "/"),
<ul><li>Contains many improvements for elixir-grpc</li></ul>
</li>
<li>Cowboy 2.7 with many improvements for elixir-grpc</li>
- <li>Ranch 2.0: num acceptors conns_sup listen_sockets</li>
+ <li>
+ Ranch 2.0:
+ <ul>
+ <li>num_acceptors</li>
+ <li>num_conns_sups</li>
+ <li>num_listen_sockets</li>
+ </ul>
+ </li>
<li>Serious work started on REST framework</li>
</ul>
</section>
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 =&gt; 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).
</code></pre>
<p>Configurable per stream or per protocol:</p>
@@ -137,7 +137,7 @@ gun:update_flow(Pid, Ref, 2),
<pre><code data-trim data-noescape>
{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, [&lt;&lt;"websocket"&gt;&gt;], _} = gun:await(Pid, Ref),
gun:ws_send(Pid, Ref, [
{text, &lt;&lt;"Hello!"&gt;&gt;},
@@ -278,7 +278,7 @@ Ref3 = gun:get(Pid, "/"),
</section>
<section>
- <h2>Cookie jar</h2>
+ <h2>Cookie jars</h2>
<ul>
<li>Automatic storing and retrieving of cookies</li>
<li>Jars exclusive to one connection</li>
@@ -355,7 +355,14 @@ Ref3 = gun:get(Pid, "/"),
<ul><li>Contains many improvements for elixir-grpc</li></ul>
</li>
<li>Cowboy 2.7 with many improvements for elixir-grpc</li>
- <li>Ranch 2.0: num acceptors conns_sup listen_sockets</li>
+ <li>
+ Ranch 2.0:
+ <ul>
+ <li>num_acceptors</li>
+ <li>num_conns_sups</li>
+ <li>num_listen_sockets</li>
+ </ul>
+ </li>
<li>Serious work started on REST framework</li>
</ul>
</section>