<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gun.git, branch master</title>
<subtitle>HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/'/>
<entry>
<title>Update Erlang.mk</title>
<updated>2025-11-06T15:37:50+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-11-06T15:37:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=514bcb2e90ddc3e1fc6ca47bc8c34d81daa2ff4f'/>
<id>514bcb2e90ddc3e1fc6ca47bc8c34d81daa2ff4f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Remove gun.app"</title>
<updated>2025-11-06T15:37:45+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-11-06T15:37:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=30a62a23ba11a839c7c6467dae11a1c8d96f57c6'/>
<id>30a62a23ba11a839c7c6467dae11a1c8d96f57c6</id>
<content type='text'>
This reverts commit a305d9a7eb202c1e36d23aea374defd4840d33bc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit a305d9a7eb202c1e36d23aea374defd4840d33bc.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove gun.app</title>
<updated>2025-10-24T10:12:17+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-10-24T10:12:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=a305d9a7eb202c1e36d23aea374defd4840d33bc'/>
<id>a305d9a7eb202c1e36d23aea374defd4840d33bc</id>
<content type='text'>
The file is generated at build time. It was kept around for
Rebar compatibility. Since then we have been publishing
releases to Hex so Rebar arguably doesn't need to fetch
the project from Git.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The file is generated at build time. It was kept around for
Rebar compatibility. Since then we have been publishing
releases to Hex so Rebar arguably doesn't need to fetch
the project from Git.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tweak CI workflow following ci.erlang.mk changes</title>
<updated>2025-10-02T09:37:42+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-10-02T09:37:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=4d1a9d1b492cfb1f2fe80365aa10326c890ec396'/>
<id>4d1a9d1b492cfb1f2fe80365aa10326c890ec396</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Cowlib version in migration guide</title>
<updated>2025-04-11T12:00:47+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-04-11T12:00:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=fa9f4663f219a9d7c7dcd7dc33ded323cce4cfcb'/>
<id>fa9f4663f219a9d7c7dcd7dc33ded323cce4cfcb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix jsx test dependency</title>
<updated>2025-04-11T10:42:09+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-04-11T10:42:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=627b8f9ed65da255afaddd166b1b9d102e0fa512'/>
<id>627b8f9ed65da255afaddd166b1b9d102e0fa512</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Gun 2.2.0</title>
<updated>2025-04-11T10:33:41+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-04-11T10:33:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=8de091acfe2e642cda85ebc4ca645dd2c22647dc'/>
<id>8de091acfe2e642cda85ebc4ca645dd2c22647dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add migration guide for Gun 2.2</title>
<updated>2025-04-10T14:24:26+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-04-10T14:24:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=be84889547eec70addba76755edf6da5464725b8'/>
<id>be84889547eec70addba76755edf6da5464725b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup HTTP/2 timeouts on close to avoid stray messages</title>
<updated>2025-04-10T13:16:35+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-04-10T13:16:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=fc7f8220797fcaf1b36204445616da7c6beed798'/>
<id>fc7f8220797fcaf1b36204445616da7c6beed798</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Catch post-handshake TLS 1.3 alerts</title>
<updated>2025-04-09T15:18:53+00:00</updated>
<author>
<name>Loïc Hoguin</name>
<email>essen@ninenines.eu</email>
</author>
<published>2025-03-28T10:42:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/gun.git/commit/?id=403a0af4cd8dd378c500e5ec7604bcc68c5ee5b8'/>
<id>403a0af4cd8dd378c500e5ec7604bcc68c5ee5b8</id>
<content type='text'>
When TLS 1.3 is used and `fail_if_no_peer_cert` (or equivalent)
is configured on the server, such as in mTLS scenarios, and
the client certificate is missing or invalid, the TLS 1.3 alert
will be sent after the handshake has completed.

The same is true for post-handshake authentication in TLS 1.3
which Erlang/OTP doesn't yet support, but will at some point in
the future.

Due to the asynchronous nature of some `ssl` socket operations,
such as sending, the alert may not always be returned from a
socket call. When the ssl socket is active we would receive
it as a message instead, so when Gun gets `{error,closed}`
it must look for the active message and see if an alert
occurred. When the ssl socket is passive we don't, so we
must query the socket for it (trying to set the socket active
at that point gets us the alert in the return value). There
is a span between handshake and the initial active mode set
where the socket is passive and may send data (the HTTP/2
preface) so we must account for both cases.

Because we sometimes have to wait for the alert as a message,
and we don't want to wait for a very long time (200ms), we
sometimes may lose the alert. Perhaps in the future this wait
time can be made configurable for users that really require
getting the alert.

The tests are only enabled on Linux because other OSes have
intermittent failures (likely due to timing).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When TLS 1.3 is used and `fail_if_no_peer_cert` (or equivalent)
is configured on the server, such as in mTLS scenarios, and
the client certificate is missing or invalid, the TLS 1.3 alert
will be sent after the handshake has completed.

The same is true for post-handshake authentication in TLS 1.3
which Erlang/OTP doesn't yet support, but will at some point in
the future.

Due to the asynchronous nature of some `ssl` socket operations,
such as sending, the alert may not always be returned from a
socket call. When the ssl socket is active we would receive
it as a message instead, so when Gun gets `{error,closed}`
it must look for the active message and see if an alert
occurred. When the ssl socket is passive we don't, so we
must query the socket for it (trying to set the socket active
at that point gets us the alert in the return value). There
is a span between handshake and the initial active mode set
where the socket is passive and may send data (the HTTP/2
preface) so we must account for both cases.

Because we sometimes have to wait for the alert as a message,
and we don't want to wait for a very long time (200ms), we
sometimes may lose the alert. Perhaps in the future this wait
time can be made configurable for users that really require
getting the alert.

The tests are only enabled on Linux because other OSes have
intermittent failures (likely due to timing).
</pre>
</div>
</content>
</entry>
</feed>
