File 0102-kernel-doc-Document-the-default-buffer-sizes.patch of Package erlang
From 21bb09913d82df1e7c34b40c7d5cbfe347cb2505 Mon Sep 17 00:00:00 2001
From: Micael Karlberg <bmk@erlang.org>
Date: Tue, 13 May 2025 17:36:44 +0200
Subject: [PATCH] [kernel|doc] Document the default buffer sizes
---
lib/kernel/src/inet.erl | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/lib/kernel/src/inet.erl b/lib/kernel/src/inet.erl
index aab8e0951a..6490fb2e63 100644
--- a/lib/kernel/src/inet.erl
+++ b/lib/kernel/src/inet.erl
@@ -998,6 +998,9 @@ The following options are available:
single recv call. If you are using higher than normal MTU consider setting
buffer higher.
+ For SCTP, defaults to 65536.
+ For TCP and UDP, defaults to 1460.
+
- **`{delay_send, Boolean}`** - Normally, when an Erlang process sends to a
socket, the driver tries to send the data immediately. If that fails, the
driver uses any means available to queue up the message to be sent whenever
@@ -1336,6 +1339,9 @@ The following options are available:
You are encouraged to use `getopts/2` to retrieve the size
set by your operating system.
+ For SCTP, defaults to 1024.
+ For UDP, defaults to 8K.
+
- **`{recvtclass, Boolean}`** [](){: #option-recvtclass } -
If set to `true` activates returning the received `TCLASS` value
on platforms that implements the protocol `IPPROTO_IPV6` option
@@ -1493,6 +1499,8 @@ The following options are available:
You are encouraged to use `getopts/2`, to retrieve the size
set by your operating system.
+ For SCTP, defaults to 65536.
+
- **`{priority, Integer}`** - Sets the `SO_PRIORITY` socket level option on
platforms where this is implemented. The behavior and allowed range varies
between different systems. The option is ignored on platforms where it is not
--
2.43.0