Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for mypanic (0.25 sec)

  1. src/reflect/value.go

    		rc.dir = c.Dir
    		switch c.Dir {
    		default:
    			panic("reflect.Select: invalid Dir")
    
    		case SelectDefault: // default
    			if haveDefault {
    				panic("reflect.Select: multiple default cases")
    			}
    			haveDefault = true
    			if c.Chan.IsValid() {
    				panic("reflect.Select: default case has Chan value")
    			}
    			if c.Send.IsValid() {
    				panic("reflect.Select: default case has Send value")
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/net/http/server.go

    // that the effect of the panic was isolated to the active request.
    // It recovers the panic, logs a stack trace to the server error log,
    // and either closes the network connection or sends an HTTP/2
    // RST_STREAM, depending on the HTTP protocol. To abort a handler so
    // the client sees an interrupted response but the server doesn't log
    // an error, panic with the value [ErrAbortHandler].
    type Handler interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    	if err != nil {
    		return
    	}
    	fPanic := true
    	dc.Mutex.Lock()
    	defer func() {
    		dc.Mutex.Unlock()
    
    		// If f panics fPanic will remain true.
    		// Ensure an error is passed to release so the connection
    		// may be discarded.
    		if fPanic {
    			err = driver.ErrBadConn
    		}
    		release(err)
    	}()
    	err = f(dc.ci)
    	fPanic = false
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg.go

    // to loadPackageData.
    func (pre *preload) flush() {
    	// flush is usually deferred.
    	// Don't hang program waiting for workers on panic.
    	if v := recover(); v != nil {
    		panic(v)
    	}
    
    	close(pre.cancel)
    	for i := 0; i < preloadWorkerCount; i++ {
    		pre.sema <- struct{}{}
    	}
    }
    
    func cleanImport(path string) string {
    	orig := path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    		Proxy: func(*Request) (*url.URL, error) { panic("") },
    		OnProxyConnectResponse: func(ctx context.Context, proxyURL *url.URL, connectReq *Request, connectRes *Response) error {
    			return nil
    		},
    		DialContext:            func(ctx context.Context, network, addr string) (net.Conn, error) { panic("") },
    		Dial:                   func(network, addr string) (net.Conn, error) { panic("") },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    	if err := d.Decode(props); err != nil {
    		panic(err)
    	}
    	convertedProps := &apiextensionsinternal.JSONSchemaProps{}
    	if err := apiextensions.Convert_v1_JSONSchemaProps_To_apiextensions_JSONSchemaProps(props, convertedProps, nil); err != nil {
    		panic(err)
    	}
    
    	res, err := schema.NewStructural(convertedProps)
    	if err != nil {
    		panic(err)
    	}
    	return res
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    	locked := gp.lockedm != 0
    	gp.lockedm = 0
    	mp.lockedg = 0
    	gp.preemptStop = false
    	gp.paniconfault = false
    	gp._defer = nil // should be true already but just in case.
    	gp._panic = nil // non-nil for Goexit during panic. points at stack-allocated data.
    	gp.writebuf = nil
    	gp.waitreason = waitReasonZero
    	gp.param = nil
    	gp.labels = nil
    	gp.timer = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/cluster_test.go

    			IPAddresses:  []string{"6.6.6.6"},
    			Locality:     c.locality,
    			DNSDomain:    "default.example.org",
    			Metadata:     c.meta,
    			IstioVersion: c.istioVersion,
    		}
    	default:
    		panic(fmt.Sprintf("unsupported node type: %v", c.nodeType))
    	}
    	clusters := cg.Clusters(cg.SetupProxy(proxy))
    	xdstest.ValidateClusters(c.t, clusters)
    	if len(cg.PushContext().ProxyStatus[model.DuplicatedClusters.Name()]) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    func (t *testRESTStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	metaObj, err := meta.Accessor(obj)
    	if err != nil {
    		panic(err.Error())
    	}
    	labels := metaObj.GetLabels()
    	if labels == nil {
    		labels = map[string]string{}
    	}
    	labels["prepare_create"] = "true"
    	metaObj.SetLabels(labels)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  10. pkg/config/validation/validation_test.go

    				MaxEjectionPercent: 105,
    			},
    			valid: false,
    		},
    		{
    			name: "invalid outlier detection, panic threshold too low", in: &networking.OutlierDetection{
    				MinHealthPercent: -1,
    			},
    			valid: false,
    		},
    		{
    			name: "invalid outlier detection, panic threshold too high", in: &networking.OutlierDetection{
    				MinHealthPercent: 101,
    			},
    			valid: false,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
Back to top