go handshake_unix_test 源码

  • 2022-07-15
  • 浏览 (738)

golang handshake_unix_test 代码

文件路径:/src/crypto/tls/handshake_unix_test.go

// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build unix

package tls

import (
	"errors"
	"syscall"
)

func init() {
	isConnRefused = func(err error) bool {
		return errors.Is(err, syscall.ECONNREFUSED)
	}
}

相关信息

go 源码目录

相关文章

go alert 源码

go auth 源码

go auth_test 源码

go boring 源码

go boring_test 源码

go cipher_suites 源码

go common 源码

go common_string 源码

go conn 源码

go conn_test 源码

0  赞