From 719e45ec354e2b5c155aa5ffef3b5cfcf3a5d484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 26 Apr 2019 15:17:19 +0200 Subject: Document ssl's session_lifetime/session_cache_clients_max --- doc/src/guide/connect.asciidoc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/src/guide/connect.asciidoc b/doc/src/guide/connect.asciidoc index dd4297d..a2c0a28 100644 --- a/doc/src/guide/connect.asciidoc +++ b/doc/src/guide/connect.asciidoc @@ -55,6 +55,12 @@ form of a map. {ok, ConnPid} = gun:open("example.org", 8443, #{transport => tls}). ---- +When using TLS you may want to tweak the +http://erlang.org/doc/man/ssl_app.html#configuration[configuration] +for the `ssl` application, in particular the `session_lifetime` +and `session_cache_client_max` to limit the amount of memory +used for the TLS sessions cache. + === Waiting for the connection to be established When Gun successfully connects to the server, it sends a -- cgit v1.2.3