- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for isConnError (0.15 sec)
-
src/net/error_plan9.go
// 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. package net func isConnError(err error) bool { return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 01 14:50:33 UTC 2018 - 224 bytes - Viewed (0) -
src/net/error_windows.go
// 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. package net import "syscall" func isConnError(err error) bool { if se, ok := err.(syscall.Errno); ok { return se == syscall.WSAECONNRESET || se == syscall.WSAECONNABORTED } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 01 14:50:33 UTC 2018 - 355 bytes - Viewed (0) -
src/net/error_unix.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix || js || wasip1 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:54:12 UTC 2023 - 382 bytes - Viewed (0) -
src/net/net.go
Temporary() bool } func (e *OpError) Temporary() bool { // Treat ECONNRESET and ECONNABORTED as temporary errors when // they come from calling accept. See issue 6163. if e.Op == "accept" && isConnError(e.Err) { return true } if ne, ok := e.Err.(*os.SyscallError); ok { t, ok := ne.Err.(temporary) return ok && t.Temporary() } t, ok := e.Err.(temporary) return ok && t.Temporary() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 26.8K bytes - Viewed (0) -
cmd/metrics-v2.go
Subsystem: kmsSubsystem, Name: kmsOnline, Help: "Reports whether the KMS is online (1) or offline (0)", Type: gaugeMetric, } _, err := GlobalKMS.Metrics(ctx) if _, ok := kes.IsConnError(err); ok { return []MetricV2{{ Description: desc, Value: float64(Offline), }} } return []MetricV2{{ Description: desc, Value: float64(Online), }}
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:54 UTC 2024 - 131.9K bytes - Viewed (0)