Skip to content

Commit dc8cf95

Browse files
authored
Merge pull request #519 from daipom/1.0-transport-section-add-missing-description-for-linger_timeout
transport section: add missing description for 'linger_timeout'
2 parents 3fc1276 + ae67c72 commit dc8cf95

File tree

5 files changed

+46
-5
lines changed

5 files changed

+46
-5
lines changed

configuration/transport-section.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,42 @@ The **`transport`** section must be under `<match>`, `<source>`, and `<filter>`
2626

2727
## Parameters
2828

29-
* `protocol` \[enum: `tcp`/`udp`/`tls`\]
29+
### Protocol
30+
31+
The protocol is specified as the argument of `<transport>` section.
32+
33+
```
34+
<transport PROTOCOL>
35+
</transport>
36+
```
37+
38+
* \[enum: `tcp`/`udp`/`tls`\]
3039
* Default: `tcp`
3140

41+
### General Setting
42+
43+
#### `linger_timeout`
44+
45+
| type | default | available transport type | version |
46+
| :--- | :--- | :--- | :--- |
47+
| integer | 0 | tcp, tls | 1.14.6 |
48+
49+
The timeout \(seconds\) to set `SO_LINGER`.
50+
51+
The default value `0` is to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT on closing.
52+
53+
You can set positive value to send FIN on closing.
54+
55+
{% hint style='info' %}
56+
On Windows, Fluentd sends FIN without depending on this setting.
57+
{% endhint %}
58+
59+
```
60+
<transport tcp>
61+
linger_timeout 1
62+
</transport>
63+
```
64+
3265
### TLS Setting
3366

3467
* `version`: \[enum: `TLS1_1`/`TLS1_2`/`TLS1_3`\]

input/forward.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection
174174

175175
You can set positive value to send FIN on closing on non-Windows.
176176

177-
(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too).
177+
{% hint style='info' %}
178+
On Windows, Fluentd sends FIN without depending on this setting.
179+
{% endhint %}
178180

179181
```text
180182
<transport tcp>

input/http.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection
217217

218218
You can set positive value to send FIN on closing on non-Windows.
219219

220-
(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too).
220+
{% hint style='info' %}
221+
On Windows, Fluentd sends FIN without depending on this setting.
222+
{% endhint %}
221223

222224
```text
223225
<transport tcp>

input/tcp.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection
163163

164164
You can set positive value to send FIN on closing on non-Windows.
165165

166-
(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too).
166+
{% hint style='info' %}
167+
On Windows, Fluentd sends FIN without depending on this setting.
168+
{% endhint %}
167169

168170
```text
169171
<source>

plugin-helper-overview/api-plugin-helper-server.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ The default value `0` is to send RST rather than FIN to avoid lots of connection
174174

175175
You can set positive value to send FIN on closing on non-Windows.
176176

177-
(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too).
177+
{% hint style='info' %}
178+
On Windows, Fluentd sends FIN without depending on this setting.
179+
{% endhint %}
178180

179181
```text
180182
<source>

0 commit comments

Comments
 (0)