handshake_unix_test.go 402 B

123456789101112131415161718
  1. // Copyright 2019 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
  5. package tls
  6. import (
  7. "errors"
  8. "syscall"
  9. )
  10. func init() {
  11. isConnRefused = func(err error) bool {
  12. return errors.Is(err, syscall.ECONNREFUSED)
  13. }
  14. }