Created
May 27, 2022 14:51
-
-
Save madflojo/c0dc1050a1c35504953c7398a755aaa7 to your computer and use it in GitHub Desktop.
TCP Keepalive Intervals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set Keepalive time interval | |
err = c.SetKeepAlivePeriod(30 * time.Second) | |
if err != nil { | |
fmt.Printf("Unable to set keepalive interval - %s", err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment