Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created May 27, 2022 14:51
Show Gist options
  • Save madflojo/c0dc1050a1c35504953c7398a755aaa7 to your computer and use it in GitHub Desktop.
Save madflojo/c0dc1050a1c35504953c7398a755aaa7 to your computer and use it in GitHub Desktop.
TCP Keepalive Intervals
// 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