diff --git a/configuration/transport-section.md b/configuration/transport-section.md index 4bd05f40..9fccfd44 100644 --- a/configuration/transport-section.md +++ b/configuration/transport-section.md @@ -26,9 +26,42 @@ The **`transport`** section must be under ``, ``, and `` ## Parameters -* `protocol` \[enum: `tcp`/`udp`/`tls`\] +### Protocol + +The protocol is specified as the argument of `` section. + +``` + + +``` + +* \[enum: `tcp`/`udp`/`tls`\] * Default: `tcp` +### General Setting + +#### `linger_timeout` + +| type | default | available transport type | version | +| :--- | :--- | :--- | :--- | +| integer | 0 | tcp, tls | 1.14.6 | + +The timeout \(seconds\) to set `SO_LINGER`. + +The default value `0` is to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT on closing. + +You can set positive value to send FIN on closing. + +{% hint style='info' %} +On Windows, Fluentd sends FIN without depending on this setting. +{% endhint %} + +``` + + linger_timeout 1 + +``` + ### TLS Setting * `version`: \[enum: `TLS1_1`/`TLS1_2`/`TLS1_3`\] diff --git a/input/forward.md b/input/forward.md index bc0cf8ab..e2a9a730 100644 --- a/input/forward.md +++ b/input/forward.md @@ -174,7 +174,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection You can set positive value to send FIN on closing on non-Windows. -(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). +{% hint style='info' %} +On Windows, Fluentd sends FIN without depending on this setting. +{% endhint %} ```text diff --git a/input/http.md b/input/http.md index 3d559ee1..0179380b 100644 --- a/input/http.md +++ b/input/http.md @@ -217,7 +217,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection You can set positive value to send FIN on closing on non-Windows. -(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). +{% hint style='info' %} +On Windows, Fluentd sends FIN without depending on this setting. +{% endhint %} ```text diff --git a/input/tcp.md b/input/tcp.md index 46b27975..c34432c5 100644 --- a/input/tcp.md +++ b/input/tcp.md @@ -163,7 +163,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection You can set positive value to send FIN on closing on non-Windows. -(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). +{% hint style='info' %} +On Windows, Fluentd sends FIN without depending on this setting. +{% endhint %} ```text diff --git a/plugin-helper-overview/api-plugin-helper-server.md b/plugin-helper-overview/api-plugin-helper-server.md index 69238e5d..8d66cfe5 100644 --- a/plugin-helper-overview/api-plugin-helper-server.md +++ b/plugin-helper-overview/api-plugin-helper-server.md @@ -174,7 +174,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection You can set positive value to send FIN on closing on non-Windows. -(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). +{% hint style='info' %} +On Windows, Fluentd sends FIN without depending on this setting. +{% endhint %} ```text