File 3612-Fix-documentation-for-OTP-18344.patch of Package erlang
From d08b3f8f7ad679680c71153ed0d2c04f9ec5ed23 Mon Sep 17 00:00:00 2001
From: Rickard Green <rickard@erlang.org>
Date: Wed, 8 Feb 2023 19:34:07 +0100
Subject: [PATCH 2/2] Fix documentation for OTP-18344
---
lib/kernel/doc/src/inet.xml | 33 ++++++++++++++++++++++++---------
1 file changed, 24 insertions(+), 9 deletions(-)
diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml
index b7a20c9d11..569f4df0aa 100644
--- a/lib/kernel/doc/src/inet.xml
+++ b/lib/kernel/doc/src/inet.xml
@@ -1597,15 +1597,30 @@ setcap cap_sys_admin,cap_sys_ptrace,cap_dac_read_search+epi beam.smp</code>
This since setting <c>SO_REUSEADDR</c> on Windows more or less
has the same behavior as setting both <c>SO_REUSEADDR</c> and
<c>SO_REUSEPORT</c> on BSD. This behavior was introduced as
- of OTP 26.0.
- </p>
- <p>
- Between OTP 25.0 and up to the predecessor of OTP 26.0,
- the <c>SO_REUSEADDR</c> option was set on Windows if
- <c>{reuseaddr, true}</c> was set. Prior to OTP 25.0, the
- <c>{reuseaddr, true}</c> option on Windows was silently
- ignored.
+ of OTP 26.0.
</p>
+ <change>
+ <p>
+ Previous behavior on Windows:
+ </p>
+ <list>
+ <item>
+ Prior to OTP 25.0, the <c>{reuseaddr, true}</c> option was
+ silently ignored.
+ </item>
+ <item>
+ Between OTP 25.0 and up to the predecessor of OTP 25.2,
+ the underlying <c>SO_REUSEADDR</c> socket option was set
+ if <c>{reuseaddr, true}</c> was set.
+ </item>
+ <item>
+ Between OTP 25.2 and up to the predecessor of OTP 26.0,
+ the underlying <c>SO_REUSEADDR</c> socket option was only
+ set on UDP sockets if <c>{reuseaddr, true}</c> was set, and
+ silently ignored on other sockets.
+ </item>
+ </list>
+ </change>
<p>
See also the
<seeerl marker="#option-exclusiveaddruse"><c>exclusiveaddruse</c></seeerl>
--
2.35.3