Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle TCP keepalive-related configurations more effectively? #1836

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 23, 2024

  1. TCPKeepalive can be configured on both the server and client sides.

    Currently, when Server.TCPKeepalive is set to false, if the net.Listener is created by the package itself, it does not override the default behavior of net.ListenConfig, which keeps TCP keepalive enabled.
    
    Also added TCPKeepalive and TCPKeepalivePeriod fields to the client to make its behavior consistent with the server. The goal of this update is to ensure that whether TCP keepalive is enabled is entirely controlled by the configuration fields provided by the package when net.TCPConn is created by the package itself.
    newacorn committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    083dd1c View commit details
    Browse the repository at this point in the history