Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isConnError (0.1 sec)

  1. 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)
  2. 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)
Back to top