From c418a89a10bd4b927738949a496713daa75d0f27 Mon Sep 17 00:00:00 2001 From: Daijiro Fukuda Date: Mon, 4 Apr 2022 16:46:34 +0900 Subject: [PATCH] Add description to `linger_timeout` behavior about Windows This option is added in https://github.com/fluent/fluentd/pull/3644 The description is added in https://github.com/fluent/fluentd-docs-gitbook/pull/392 However, there was a lack of consideration regarding the default behavior on Windows. Signed-off-by: Daijiro Fukuda --- input/forward.md | 6 ++++-- input/http.md | 6 ++++-- input/tcp.md | 6 ++++-- plugin-helper-overview/api-plugin-helper-server.md | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/input/forward.md b/input/forward.md index 0fa53ab1..bc0cf8ab 100644 --- a/input/forward.md +++ b/input/forward.md @@ -170,9 +170,11 @@ This section is for setting TLS transport or some general transport configuratio 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. +The default value `0` is to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT on closing on non-Windows. -You can set positive value to send FIN on closing. +You can set positive value to send FIN on closing on non-Windows. + +(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). ```text diff --git a/input/http.md b/input/http.md index 3e6f9386..150e67d1 100644 --- a/input/http.md +++ b/input/http.md @@ -178,9 +178,11 @@ This section is for setting TLS transport or some general transport configuratio 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. +The default value `0` is to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT on closing on non-Windows. -You can set positive value to send FIN on closing. +You can set positive value to send FIN on closing on non-Windows. + +(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). ```text diff --git a/input/tcp.md b/input/tcp.md index e2a13e3e..cb1630a8 100644 --- a/input/tcp.md +++ b/input/tcp.md @@ -151,9 +151,11 @@ This section is for setting TLS transport or some general transport configuratio 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. +The default value `0` is to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT on closing on non-Windows. -You can set positive value to send FIN on closing. +You can set positive value to send FIN on closing on non-Windows. + +(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). ```text diff --git a/plugin-helper-overview/api-plugin-helper-server.md b/plugin-helper-overview/api-plugin-helper-server.md index 880cacac..69238e5d 100644 --- a/plugin-helper-overview/api-plugin-helper-server.md +++ b/plugin-helper-overview/api-plugin-helper-server.md @@ -170,9 +170,11 @@ end 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. +The default value `0` is to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT on closing on non-Windows. -You can set positive value to send FIN on closing. +You can set positive value to send FIN on closing on non-Windows. + +(On Windows, Fluentd sends FIN when `linger_timeout` is `0` too). ```text