megaease / easeprobe

A simple, standalone, and lightweight tool that can do health/status checking, written in Go.
Apache License 2.0
2.18k stars 231 forks source link

Make linger configurable #557

Closed proditis closed 2 months ago

proditis commented 2 months ago

The following PR is an attempt to make SO_LINGER option configurable.

It introduces a new bool option named nolinger for tcp, tls, http and ssh probes which disables SO_LINGER. Default value set to false to match the previous easeprobe operation and not require configuration changes when updated.

Documentation also updated to include the addition of this option.

Notes:

codecov-commenter commented 2 months ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.72%. Comparing base (eef3a25) to head (4da3b85). Report is 53 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #557 +/- ## ========================================== - Coverage 98.80% 98.72% -0.09% ========================================== Files 85 85 Lines 5867 5860 -7 ========================================== - Hits 5797 5785 -12 - Misses 51 56 +5 Partials 19 19 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Mr-YYM commented 2 months ago

when to release a new version? 😄

suchen-sci commented 2 months ago

@Mr-YYM There is a new PR in progress, if that one is merged. We will release a new version.