From 9fb9d53a11cfae1ccebfc2ac32cbe98da587f4cd Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Sat, 29 Aug 2026 18:27:24 +0200 Subject: [PATCH] Update link to documentation of the latest Ranch release, 2.2 --- lib/plug/cowboy.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plug/cowboy.ex b/lib/plug/cowboy.ex index 0f62b9b..eea8308 100644 --- a/lib/plug/cowboy.ex +++ b/lib/plug/cowboy.ex @@ -43,18 +43,18 @@ defmodule Plug.Cowboy do see the [Cowboy docs](https://ninenines.eu/docs/en/cowboy/2.12/manual/cowboy_http/). * `:transport_options` - A keyword list specifying transport options, - see [Ranch docs](https://ninenines.eu/docs/en/ranch/1.7/manual/ranch/). + see [Ranch docs](https://ninenines.eu/docs/en/ranch/2.2/manual/ranch/). By default `:num_acceptors` will be set to `100` and `:max_connections` to `16_384`. All other options given at the top level must configure the underlying socket. For HTTP connections, those options are listed under - [`ranch_tcp`](https://ninenines.eu/docs/en/ranch/1.7/manual/ranch_tcp/). + [`ranch_tcp`](https://ninenines.eu/docs/en/ranch/2.2/manual/ranch_tcp/). For example, you can set `:ipv6_v6only` to true if you want to bind only on IPv6 addresses. For HTTPS (SSL) connections, those options are described in - [`ranch_ssl`](https://ninenines.eu/docs/en/ranch/1.7/manual/ranch_ssl/). + [`ranch_ssl`](https://ninenines.eu/docs/en/ranch/2.2/manual/ranch_ssl/). See `https/3` for an example and read `Plug.SSL.configure/1` to understand about our SSL defaults.