Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Skip SetKeepAlivePeriod call on OpenBSD #80

Merged
merged 1 commit into from Jun 24, 2021

Commits on Jun 23, 2021

  1. Skip SetKeepAlivePeriod call on OpenBSD

    OpenBSD does not have a user-settable per-socket TCP keepalives. This changes
    tryKeepAlive to skip attempting set it when on OpenBSD.
    
      https://github.com/golang/go/blob/master/src/net/tcpsockopt_openbsd.go#L13-L14
    
    This prevents thousands of `log.Errorf("Failed set keepalive period: %s",
    err)`'s from happening.
    qbit committed Jun 23, 2021
    Copy the full SHA
    5ab216b View commit details
    Browse the repository at this point in the history