Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information