Skip to content

Commit 5d0c101

Browse files
authored
Documentation debt: TCP sockets and CA extensions configuration (#1115)
Signed-off-by: zesk1999 <zesk1999@gmail.com>
1 parent 3ba88b2 commit 5d0c101

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

docs/fastdds/security/auth_plugin/auth_plugin.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ However, all other commands are only compatible with Linux OS.
179179
#default_keyfile = privkey.pem
180180
distinguished_name= req_distinguished_name
181181
#attributes = req_attributes
182-
#x509_extensions = v3_ca # The extentions to add to the self signed cert
182+
x509_extensions = root_ca_extensions # The extensions to add to the self signed cert
183183
string_mask = utf8only
184184
185185
[ req_distinguished_name ]
@@ -190,6 +190,12 @@ However, all other commands are only compatible with Linux OS.
190190
commonName = eProsima Main Test CA
191191
emailAddress = mainca@eprosima.com
192192
193+
[root_ca_extensions]
194+
basicConstraints = critical, CA:true
195+
196+
.. note::
197+
For a self-signed **root CA**, the X.509 extension ``basicConstraints = CA:true`` is **required**. Without it, stacks might not recognize the certificate as a CA.
198+
193199
After writing the configuration file, next commands generate the certificate using the
194200
Elliptic Curve Digital Signature Algorithm (ECDSA).
195201

docs/fastdds/use_cases/large_data/large_data.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,27 @@ For receiving sockets, the command is:
124124
125125
$> sudo sysctl -w net.core.rmem_max=12582912
126126
127+
Linux also defines per-socket TCP buffer sizes as triplets:
128+
129+
.. code-block:: text
130+
131+
$> net.ipv4.tcp_wmem = <min> <default> <max> (TCP send buffer)
132+
$> net.ipv4.tcp_rmem = <min> <default> <max> (TCP receive buffer)
133+
134+
The middle value is the default used for most connections. If only the global maxima are raised, sockets may still
135+
use a small default and saturate during bursts.
136+
Set the current values for sending sockets with:
137+
138+
.. code-block:: bash
139+
140+
$> sudo sysctl -w net.ipv4.tcp_wmem="4096 12582912 12582912"
141+
142+
For receiving sockets, the command is:
143+
144+
.. code-block:: bash
145+
146+
$> sudo sysctl -w net.ipv4.tcp_rmem="4096 12582912 12582912"
147+
127148
Windows
128149
.......
129150

0 commit comments

Comments
 (0)