mirror of https://github.com/libp2p/go-libp2p.git
Browse Source
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.pull/1418/head
Aaron Bieber
3 years ago
1 changed files with 6 additions and 2 deletions
Loading…
Reference in new issue