Skip to content

Commit

Permalink
Merge pull request #3701 from daipom/fix-comments-about-solinger-option
Browse files Browse the repository at this point in the history
Add comments to `linger_timeout` behavior about Windows
  • Loading branch information
ashie authored Apr 4, 2022
2 parents ed9d25e + 52c0ddb commit b04e808
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fluent/plugin_helper/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ module ServerTransportParams
### Socket Params ###

# SO_LINGER 0 to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT at src.
# Set positive value if needing to send FIN on closing.
# Set positive value if needing to send FIN on closing on non-Windows.
# (On Windows, Fluentd can send FIN with zero `linger_timeout` since Fluentd doesn't set 0 to SO_LINGER on Windows.
# See `socket_option.rb`.)
# NOTE:
# Socket-options can be specified from each plugin as needed, so most of them is not defined here for now.
# This is because there is no positive reason to do so.
Expand Down

0 comments on commit b04e808

Please sign in to comment.