- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,124 for panicCh (0.29 sec)
-
staging/src/k8s.io/apiserver/pkg/server/filters/routine.go
handler.ServeHTTP(w, req) return } req = req.WithContext(WithTask(ctx, &Task{})) panicCh := make(chan any, 1) go func() { defer func() { if r := recover(); r != nil { panicCh <- r } close(panicCh) }() handler.ServeHTTP(w, req) }() if p, ok := <-panicCh; ok { panic(p) } ctx = req.Context() if t := TaskFrom(ctx); t != nil && t.Func != nil { t.Func()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 10:22:16 UTC 2024 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go
return r.count } func newHandler(responseCh <-chan string, panicCh <-chan interface{}, writeErrCh chan<- error) http.HandlerFunc { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { select { case resp := <-responseCh: _, err := w.Write([]byte(resp)) writeErrCh <- err case panicReason := <-panicCh: panic(panicReason) } }) } func TestTimeout(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 18.4K bytes - Viewed (0) -
src/runtime/panic.go
// This is used to try hard to get a panic stack trace out when exiting. var runningPanicDefers atomic.Uint32 // panicking is non-zero when crashing the program for an unrecovered panic. var panicking atomic.Uint32 // paniclk is held while printing the panic information and stack trace, // so that two concurrent panics don't overlap their output. var paniclk mutex
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0) -
src/runtime/panic32.go
func goPanicExtendIndex(hi int, lo uint, y int) { panicCheck1(getcallerpc(), "index out of range") panic(boundsError{x: int64(hi)<<32 + int64(lo), signed: true, y: y, code: boundsIndex}) } func goPanicExtendIndexU(hi uint, lo uint, y int) { panicCheck1(getcallerpc(), "index out of range") panic(boundsError{x: int64(hi)<<32 + int64(lo), signed: false, y: y, code: boundsIndex}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 4.8K bytes - Viewed (0) -
src/cmd/internal/test2json/testdata/panic.json
{"Action":"output","Test":"TestPanic","Output":"panic(0x1110ea0, 0x116aea0)\n"} {"Action":"output","Test":"TestPanic","Output":"\t/go/src/runtime/panic.go:679 +0x1b2\n"} {"Action":"output","Test":"TestPanic","Output":"command-line-arguments.TestPanic(0xc000092100)\n"} {"Action":"output","Test":"TestPanic","Output":"\ta_test.go:6 +0x39\n"}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 1.4K bytes - Viewed (0) -
src/runtime/callers_test.go
// recovered, there is no remaining panic on the stack. pcs := make([]uintptr, 20) pcs = pcs[:runtime.Callers(0, pcs)] testCallersEqual(t, pcs, want) }() defer func() { r := recover() if r != "panic2" { t.Fatalf("got %v, wanted %v", r, "panic2") } }() defer func() { // panic2 aborts/replaces panic1, because it is a recursive panic
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 21:36:31 UTC 2023 - 12.1K bytes - Viewed (0) -
src/runtime/defer_test.go
} }() defer func() { panic("panic2") }() panic("panic1") } // This tests that recover() does not succeed unless it is called directly from a // defer function that is directly called by the panic. Here, we first call it // from a defer function that is created by the defer function called directly by // the panic. In func TestRecoverMatching(t *testing.T) { defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:57:24 UTC 2023 - 11.4K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/panic.c
Cuong Manh Le <******@****.***> 1635360910 +0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 27 20:29:07 UTC 2021 - 239 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/panic.go
Cuong Manh Le <******@****.***> 1635360910 +0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 27 20:29:07 UTC 2021 - 312 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go
func WithPanicRecovery(handler http.Handler, resolver request.RequestInfoResolver) http.Handler { return withPanicRecovery(handler, func(w http.ResponseWriter, req *http.Request, err interface{}) { if err == http.ErrAbortHandler { // Honor the http.ErrAbortHandler sentinel panic value //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 26 16:28:45 UTC 2024 - 3.3K bytes - Viewed (0)