diff options
Diffstat (limited to 'lib/kernel')
-rw-r--r-- | lib/kernel/doc/src/gen_sctp.xml | 9 | ||||
-rw-r--r-- | lib/kernel/doc/src/gen_tcp.xml | 5 | ||||
-rw-r--r-- | lib/kernel/doc/src/gen_udp.xml | 6 | ||||
-rw-r--r-- | lib/kernel/doc/src/net_kernel.xml | 3 | ||||
-rw-r--r-- | lib/kernel/doc/src/notes.xml | 106 | ||||
-rw-r--r-- | lib/kernel/src/erl_distribution.erl | 2 | ||||
-rw-r--r-- | lib/kernel/src/kernel.app.src | 2 | ||||
-rw-r--r-- | lib/kernel/src/kernel.appup.src | 8 | ||||
-rw-r--r-- | lib/kernel/src/net_kernel.erl | 2 | ||||
-rw-r--r-- | lib/kernel/test/prim_file_SUITE.erl | 2 | ||||
-rw-r--r-- | lib/kernel/vsn.mk | 2 |
11 files changed, 127 insertions, 20 deletions
diff --git a/lib/kernel/doc/src/gen_sctp.xml b/lib/kernel/doc/src/gen_sctp.xml index 2aa97d07c2..2683a4f77d 100644 --- a/lib/kernel/doc/src/gen_sctp.xml +++ b/lib/kernel/doc/src/gen_sctp.xml @@ -128,7 +128,7 @@ </func> <func> - <name name="connect" arity="3" anchor="connect-sockaddr3" since="OTP @OTP-17455@"/> + <name name="connect" arity="3" anchor="connect-sockaddr3" since="OTP 24.3"/> <fsummary>Same as <c>connect(Socket, SockAddr, Opts, infinity)</c>.</fsummary> <desc> <p>Same as <c>connect(<anno>Socket</anno>, <anno>SockAddr</anno>, @@ -137,7 +137,7 @@ </func> <func> - <name name="connect" arity="4" clause_i="1" anchor="connect-sockaddr4" since="OTP @OTP-17455@"/> + <name name="connect" arity="4" clause_i="1" anchor="connect-sockaddr4" since="OTP 24.3"/> <fsummary>Establish a new association for socket <c>Socket</c>, with a peer (SCTP server socket).</fsummary> <desc> @@ -243,7 +243,7 @@ connect(Socket, Ip, Port>, </func> <func> - <name name="connect_init" arity="3" anchor="connect_init-sockaddr3" since="OTP @OTP-17455@"/> + <name name="connect_init" arity="3" anchor="connect_init-sockaddr3" since="OTP 24.3"/> <fsummary>Same as <c>connect_init(Socket, SockAddr, Opts, infinity)</c>.</fsummary> <desc> <p>Same as <c>connect_init(<anno>Socket</anno>, <anno>SockAddr</anno>, @@ -252,7 +252,7 @@ connect(Socket, Ip, Port>, </func> <func> - <name name="connect_init" arity="4" clause_i="1" anchor="connect_init-sockaddr4" since="OTP @OTP-17455@"/> + <name name="connect_init" arity="4" clause_i="1" anchor="connect_init-sockaddr4" since="OTP 24.3"/> <fsummary>Same as <c>connect_init(Socket, Addr, Port, Opts, infinity)</c>..</fsummary> <desc> <p>This is conceptually the same as @@ -1255,4 +1255,3 @@ client_loop(S, Peer1, Port1, AssocId1, Peer2, Port2, AssocId2) -> API Extensions for SCTP</url></p> </section> </erlref> - diff --git a/lib/kernel/doc/src/gen_tcp.xml b/lib/kernel/doc/src/gen_tcp.xml index 80fa78a3f8..e455cfdaf5 100644 --- a/lib/kernel/doc/src/gen_tcp.xml +++ b/lib/kernel/doc/src/gen_tcp.xml @@ -294,8 +294,8 @@ do_recv(Sock, Bs) -> </func> <func> - <name name="connect" arity="2" clause_i="1" since="OTP @OTP-17455@" anchor="connect-sockaddr2"/> - <name name="connect" arity="3" clause_i="2" since="OTP @OTP-17455@" anchor="connect-sockaddr3"/> + <name name="connect" arity="2" clause_i="1" since="OTP 24.3" anchor="connect-sockaddr2"/> + <name name="connect" arity="3" clause_i="2" since="OTP 24.3" anchor="connect-sockaddr3"/> <fsummary>Connect to a TCP port.</fsummary> <desc> <p>Connects to a server according to <c><anno>SockAddr</anno></c>. @@ -740,4 +740,3 @@ loop(Sock) -> comes in handy.</p> </section> </erlref> - diff --git a/lib/kernel/doc/src/gen_udp.xml b/lib/kernel/doc/src/gen_udp.xml index c940cc2cdf..042a73823d 100644 --- a/lib/kernel/doc/src/gen_udp.xml +++ b/lib/kernel/doc/src/gen_udp.xml @@ -119,7 +119,7 @@ </func> <func> - <name name="connect" arity="2" since="OTP @OTP-17455@" anchor="connect-sockaddr"/> + <name name="connect" arity="2" since="OTP 24.3" anchor="connect-sockaddr"/> <fsummary>Connect a UDP port.</fsummary> <desc> <p>Connecting a UDP socket only means storing the specified @@ -142,7 +142,7 @@ </func> <func> - <name name="connect" arity="3" since="OTP @OTP-17455@" anchor="connect-addr-port"/> + <name name="connect" arity="3" since="OTP 24.3" anchor="connect-addr-port"/> <fsummary>Connect a UDP port.</fsummary> <desc> <p>Connecting a UDP socket only means storing the specified @@ -339,7 +339,7 @@ </func> <func> - <name name="send" arity="2" since="OTP @OTP-17455@" anchor="send-2"/> + <name name="send" arity="2" since="OTP 24.3" anchor="send-2"/> <fsummary>Send a packet on a connected socket.</fsummary> <desc> <p> diff --git a/lib/kernel/doc/src/net_kernel.xml b/lib/kernel/doc/src/net_kernel.xml index 0166b78a4b..6ffe063e91 100644 --- a/lib/kernel/doc/src/net_kernel.xml +++ b/lib/kernel/doc/src/net_kernel.xml @@ -349,7 +349,7 @@ $ <input>erl -sname foobar</input></pre> </func> <func> - <name name="start" arity="2" since="OTP @OTP-17905@"/> + <name name="start" arity="2" since="OTP 24.3"/> <fsummary>Turn an Erlang runtime system into a distributed node.</fsummary> <desc> <p> @@ -463,4 +463,3 @@ $ <input>erl -sname foobar</input></pre> </func> </funcs> </erlref> - diff --git a/lib/kernel/doc/src/notes.xml b/lib/kernel/doc/src/notes.xml index 2f0cc44d9b..4239d6901c 100644 --- a/lib/kernel/doc/src/notes.xml +++ b/lib/kernel/doc/src/notes.xml @@ -31,6 +31,112 @@ </header> <p>This document describes the changes made to the Kernel application.</p> +<section><title>Kernel 8.3</title> + + <section><title>Fixed Bugs and Malfunctions</title> + <list> + <item> + <p> + Handling of <c>send_timeout</c> for <c>gen_tcp</c> has + been corrected so that the timeout is honored also when + sending 0 bytes.</p> + <p> + Own Id: OTP-17840</p> + </item> + <item> + <p> By default <c>global</c> does <i>not</i> take any + actions to restore a fully connected network when + connections are lost due to network issues. This is + problematic for all applications expecting a fully + connected network to be provided, such as for example + <c>mnesia</c>, but also for <c>global</c> itself. A + network of overlapping partitions might cause the + internal state of <c>global</c> to become inconsistent. + Such an inconsistency can remain even after such + partitions have been brought together to form a fully + connected network again. The effect on other applications + that expects that a fully connected network is maintained + may vary, but they might misbehave in very subtle hard to + detect ways during such a partitioning. </p> <p> In order + to prevent such issues, we have introduced a <i>prevent + overlapping partitions</i> fix which can be enabled using + the <seeapp + marker="kernel:kernel_app#prevent_overlapping_partitions"><c>prevent_overlapping_partitions</c></seeapp> + <c>kernel(6)</c> parameter. When this fix has been + enabled, <c>global</c> will actively disconnect from + nodes that reports that they have lost connections to + other nodes. This will cause fully connected partitions + to form instead of leaving the network in a state with + overlapping partitions. Note that this fix <i>has</i> to + be enabled on <i>all</i> nodes in the network in order to + work properly. Since this quite substantially changes the + behavior, this fix is currently disabled by default. + Since you might get hard to detect issues without this + fix you are, however, <i>strongly</i> advised to enable + this fix in order to avoid issues such as the ones + described above. As of OTP 25 this fix will become + enabled by default. </p> + <p> + Own Id: OTP-17843 Aux Id: ERIERL-732, PR-5611 </p> + </item> + <item> + <p> + Fix bug where <c>logger</c> would crash when logging a + report including improper lists.</p> + <p> + Own Id: OTP-17851</p> + </item> + <item> + <p> + Make <c>erlang:set_cookie</c> work for dynamic node + names.</p> + <p> + Own Id: OTP-17902 Aux Id: GH-5402, PR-5670 </p> + </item> + </list> + </section> + + + <section><title>Improvements and New Features</title> + <list> + <item> + <p> + Add support for using socket:sockaddr_in() and + socket:sockaddr_in6() when using gen_sctp, gen_tcp and + gen_udp. This will make it possible to use Link Local + IPv6 addresses.</p> + <p> + Own Id: OTP-17455 Aux Id: GH-4852 </p> + </item> + <item> + <p> + A <seeapp + marker="kernel:kernel_app#net_tickintensity"><c>net_tickintensity</c></seeapp> + <c>kernel</c> parameter has been introduced. It can be + used to control the amount of ticks during a <seeapp + marker="kernel:kernel_app#net_ticktime"><c>net_ticktime</c></seeapp> + period.</p> + <p> + A new <seemfa + marker="kernel:net_kernel#start/2"><c>net_kernel:start/2</c></seemfa> + function has also been introduced in order to make it + easier to add new options. The use of <seemfa + marker="kernel:net_kernel#start/1"><c>net_kernel:start/1</c></seemfa> + has been deprecated.</p> + <p> + Own Id: OTP-17905 Aux Id: ERIERL-732, PR-5740 </p> + </item> + <item> + <p> + Improve documentation for the dynamic node name feature.</p> + <p> + Own Id: OTP-17918</p> + </item> + </list> + </section> + +</section> + <section><title>Kernel 8.2</title> <section><title>Fixed Bugs and Malfunctions</title> diff --git a/lib/kernel/src/erl_distribution.erl b/lib/kernel/src/erl_distribution.erl index 668305982c..9e12ef8ad4 100644 --- a/lib/kernel/src/erl_distribution.erl +++ b/lib/kernel/src/erl_distribution.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2021. All Rights Reserved. +%% Copyright Ericsson AB 1996-2022. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. diff --git a/lib/kernel/src/kernel.app.src b/lib/kernel/src/kernel.app.src index 780def93af..2f3a753511 100644 --- a/lib/kernel/src/kernel.app.src +++ b/lib/kernel/src/kernel.app.src @@ -158,6 +158,6 @@ {shell_docs_ansi,auto} ]}, {mod, {kernel, []}}, - {runtime_dependencies, ["erts-@OTP-17843@", "stdlib-@OTP-17720@", "sasl-3.0", "crypto-5.0"]} + {runtime_dependencies, ["erts-12.3", "stdlib-@OTP-17720@", "sasl-3.0", "crypto-5.0"]} ] }. diff --git a/lib/kernel/src/kernel.appup.src b/lib/kernel/src/kernel.appup.src index 116a45cddc..5634b0e58a 100644 --- a/lib/kernel/src/kernel.appup.src +++ b/lib/kernel/src/kernel.appup.src @@ -53,7 +53,9 @@ {<<"^8\\.1\\.0(?:\\.[0-9]+)+$">>,[restart_new_emulator]}, {<<"^8\\.1\\.1(?:\\.[0-9]+)*$">>,[restart_new_emulator]}, {<<"^8\\.1\\.2(?:\\.[0-9]+)*$">>,[restart_new_emulator]}, - {<<"^8\\.1\\.3(?:\\.[0-9]+)*$">>,[restart_new_emulator]}], + {<<"^8\\.1\\.3(?:\\.[0-9]+)*$">>,[restart_new_emulator]}, + {<<"^8\\.2$">>,[restart_new_emulator]}, + {<<"^8\\.2\\.0(?:\\.[0-9]+)+$">>,[restart_new_emulator]}], [{<<"^6\\.4$">>,[restart_new_emulator]}, {<<"^6\\.4\\.0(?:\\.[0-9]+)+$">>,[restart_new_emulator]}, {<<"^6\\.4\\.1(?:\\.[0-9]+)*$">>,[restart_new_emulator]}, @@ -79,4 +81,6 @@ {<<"^8\\.1\\.0(?:\\.[0-9]+)+$">>,[restart_new_emulator]}, {<<"^8\\.1\\.1(?:\\.[0-9]+)*$">>,[restart_new_emulator]}, {<<"^8\\.1\\.2(?:\\.[0-9]+)*$">>,[restart_new_emulator]}, - {<<"^8\\.1\\.3(?:\\.[0-9]+)*$">>,[restart_new_emulator]}]}. + {<<"^8\\.1\\.3(?:\\.[0-9]+)*$">>,[restart_new_emulator]}, + {<<"^8\\.2$">>,[restart_new_emulator]}, + {<<"^8\\.2\\.0(?:\\.[0-9]+)+$">>,[restart_new_emulator]}]}. diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index cd500f16b0..91eb57fa89 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2021. All Rights Reserved. +%% Copyright Ericsson AB 1996-2022. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. diff --git a/lib/kernel/test/prim_file_SUITE.erl b/lib/kernel/test/prim_file_SUITE.erl index a8a341d95a..086e54ce7f 100644 --- a/lib/kernel/test/prim_file_SUITE.erl +++ b/lib/kernel/test/prim_file_SUITE.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2000-2021. All Rights Reserved. +%% Copyright Ericsson AB 2000-2022. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. diff --git a/lib/kernel/vsn.mk b/lib/kernel/vsn.mk index cb2767987f..ac90eb0901 100644 --- a/lib/kernel/vsn.mk +++ b/lib/kernel/vsn.mk @@ -1 +1 @@ -KERNEL_VSN = 8.2 +KERNEL_VSN = 8.3 |