Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion configuration/transport-section.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,42 @@ The **`transport`** section must be under `<match>`, `<source>`, and `<filter>`

## Parameters

* `protocol` \[enum: `tcp`/`udp`/`tls`\]
### Protocol

The protocol is specified as the argument of `<transport>` section.

```
<transport PROTOCOL>
</transport>
```

* \[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 %}

```
<transport tcp>
linger_timeout 1
</transport>
```

### TLS Setting

* `version`: \[enum: `TLS1_1`/`TLS1_2`/`TLS1_3`\]
Expand Down
4 changes: 3 additions & 1 deletion input/forward.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Comment thread
daipom marked this conversation as resolved.
```text
<transport tcp>
Expand Down
4 changes: 3 additions & 1 deletion input/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<transport tcp>
Expand Down
4 changes: 3 additions & 1 deletion input/tcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<source>
Expand Down
4 changes: 3 additions & 1 deletion plugin-helper-overview/api-plugin-helper-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<source>
Expand Down