Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for MUX (0.14 sec)

  1. src/net/http/servemux121.go

    }
    
    // Formerly ServeMux.Handle.
    func (mux *serveMux121) handle(pattern string, handler Handler) {
    	mux.mu.Lock()
    	defer mux.mu.Unlock()
    
    	if pattern == "" {
    		panic("http: invalid pattern")
    	}
    	if handler == nil {
    		panic("http: nil handler")
    	}
    	if _, exist := mux.m[pattern]; exist {
    		panic("http: multiple registrations for " + pattern)
    	}
    
    	if mux.m == nil {
    		mux.m = make(map[string]muxEntry)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:40:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. prepare_stmt.go

    	}
    
    	return nil, ErrInvalidDB
    }
    
    func (db *PreparedStmtDB) Close() {
    	db.Mux.Lock()
    	defer db.Mux.Unlock()
    
    	for _, query := range db.PreparedSQL {
    		if stmt, ok := db.Stmts[query]; ok {
    			delete(db.Stmts, query)
    			go stmt.Close()
    		}
    	}
    }
    
    func (sdb *PreparedStmtDB) Reset() {
    	sdb.Mux.Lock()
    	defer sdb.Mux.Unlock()
    
    	for _, stmt := range sdb.Stmts {
    		go stmt.Close()
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 28 08:47:39 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. src/net/http/server_test.go

    		fmt.Fprintf(w, "OK")
    	}
    	mux := NewServeMux()
    	mux.HandleFunc("/", fn)
    	mux.HandleFunc("/index", fn)
    	mux.HandleFunc("/home", fn)
    	mux.HandleFunc("/about", fn)
    	mux.HandleFunc("/contact", fn)
    	mux.HandleFunc("/robots.txt", fn)
    	mux.HandleFunc("/products/", fn)
    	mux.HandleFunc("/products/1", fn)
    	mux.HandleFunc("/products/2", fn)
    	mux.HandleFunc("/products/3", fn)
    	mux.HandleFunc("/products/3/image.jpg", fn)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 13:54:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/healthz/healthz.go

    // "/readyz" to mux. *All handlers* for mux must be specified in
    // exactly one call to InstallHandler. Calling InstallHandler more
    // than once for the same mux will result in a panic.
    func InstallReadyzHandler(mux mux, checks ...HealthChecker) {
    	InstallPathHandler(mux, "/readyz", checks...)
    }
    
    // InstallLivezHandler registers handlers for liveness checking on the path
    // "/livez" to mux. *All handlers* for mux must be specified in
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. pilot/pkg/xds/debug.go

    	s.addDebugHandler(mux, internalMux, "/debug/edsz", "Status and debug interface for EDS", s.Edsz)
    	s.addDebugHandler(mux, internalMux, "/debug/ndsz", "Status and debug interface for NDS", s.ndsz)
    	s.addDebugHandler(mux, internalMux, "/debug/adsz", "Status and debug interface for ADS", s.adsz)
    	s.addDebugHandler(mux, internalMux, "/debug/adsz?push=true", "Initiates push of the current state to all connected endpoints", s.adsz)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_progress.go

    	defer timer.Stop()
    	for {
    		stopped := func() bool {
    			pr.mux.Lock()
    			defer pr.mux.Unlock()
    			for pr.waiting == 0 && !pr.stopped {
    				pr.cond.Wait()
    			}
    			return pr.stopped
    		}()
    		if stopped {
    			return
    		}
    
    		select {
    		case <-timer.C():
    			shouldRequest := func() bool {
    				pr.mux.Lock()
    				defer pr.mux.Unlock()
    				return pr.waiting > 0 && !pr.stopped
    			}()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 24 09:56:38 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/cmd/trace/main.go

    		{Type: traceviewer.ViewThread, Ranges: ranges},
    	}))
    
    	// Catapult handlers.
    	mux.Handle("/trace", traceviewer.TraceHandler())
    	mux.Handle("/jsontrace", JSONTraceHandler(parsed))
    	mux.Handle("/static/", traceviewer.StaticHandler())
    
    	// Goroutines handlers.
    	mux.HandleFunc("/goroutines", GoroutinesHandlerFunc(parsed.summary.Goroutines))
    	mux.HandleFunc("/goroutine", GoroutineHandler(parsed.summary.Goroutines))
    
    	// MMU handler.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. internal/grid/muxclient.go

    				fmt.Println("Client sending disconnect to mux", m.MuxID)
    			}
    			m.addErrorNonBlockingClose(errResp, context.Cause(m.ctx))
    			errState = true
    			continue
    		case <-pingTimer:
    			if !m.doPing(errResp) {
    				errState = true
    				continue
    			}
    		case req, ok := <-requests:
    			if !ok {
    				// Done send EOF
    				if debugPrint {
    					fmt.Println("Client done, sending EOF to mux", m.MuxID)
    				}
    				msg := message{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. tests/prepared_stmt_test.go

    	if !ok {
    		t.Fatalf("should assign PreparedStatement Manager back to database when using PrepareStmt mode")
    	}
    
    	pdb.Mux.Lock()
    	if len(pdb.Stmts) == 0 {
    		pdb.Mux.Unlock()
    		t.Fatalf("prepared stmt can not be empty")
    	}
    	pdb.Mux.Unlock()
    
    	pdb.Reset()
    	pdb.Mux.Lock()
    	defer pdb.Mux.Unlock()
    	if len(pdb.Stmts) != 0 {
    		t.Fatalf("prepared stmt should be empty")
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 07:55:43 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go

    limitations under the License.
    */
    
    package mux
    
    import (
    	"fmt"
    	"net/http"
    	"runtime/debug"
    	"sort"
    	"strings"
    	"sync"
    	"sync/atomic"
    
    	"k8s.io/klog/v2"
    
    	utilruntime "k8s.io/apimachinery/pkg/util/runtime"
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // PathRecorderMux wraps a mux object and records the registered exposedPaths.
    type PathRecorderMux struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 01:52:15 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top