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.
Showing
Please register or sign in to comment