Mercurial > hg > CbC > CbC_gcc
view libgo/go/net/error_unix.go @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
line wrap: on
line source
// Copyright 2018 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. // +build darwin dragonfly freebsd js linux netbsd openbsd solaris package net import "syscall" func isConnError(err error) bool { if se, ok := err.(syscall.Errno); ok { return se == syscall.ECONNRESET || se == syscall.ECONNABORTED } return false }