Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for startRequest (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/interface.go

    	// (1) during a call to StartRequest and (2) during a call to
    	// Request::Finish.  In the latter case idleness can only change
    	// from false to true.
    	IsIdle() bool
    
    	// StartRequest begins the process of handling a request.  If the
    	// request gets queued and the number of queues is greater than 1
    	// then StartRequest uses the given hashValue as the source of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    //     and then cancels the context of request 2.
    //  6. The exec fn of request 1, if StartRequest 2 returns a req2 (which is the normal case),
    //     calls `req2.Finish`, which is expected to return after the context cancel.
    //  7. The queueset interface allows StartRequest 2 to return `nil` in this situation,
    //     if the scheduler gets the cancel done before StartRequest finishes;
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  3. src/net/textproto/textproto.go

    //	}
    //	text, err := c.ReadDotBytes()
    //	if err != nil {
    //		return nil, err
    //	}
    //	return c.ReadCodeLine(250)
    func (c *Conn) Cmd(format string, args ...any) (id uint, err error) {
    	id = c.Next()
    	c.StartRequest(id)
    	err = c.PrintfLine(format, args...)
    	c.EndRequest(id)
    	if err != nil {
    		return 0, err
    	}
    	return id, nil
    }
    
    // TrimString returns s without leading and trailing ASCII space.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/net/http/httputil/persist.go

    // HTTP/1.1 connection).
    func (sc *ServerConn) Read() (*http.Request, error) {
    	var req *http.Request
    	var err error
    
    	// Ensure ordered execution of Reads and Writes
    	id := sc.pipe.Next()
    	sc.pipe.StartRequest(id)
    	defer func() {
    		sc.pipe.EndRequest(id)
    		if req == nil {
    			sc.pipe.StartResponse(id)
    			sc.pipe.EndResponse(id)
    		} else {
    			// Remember the pipeline id of this request
    			sc.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_filter.go

    	workEstimator func() fcrequest.WorkEstimate,
    	queueNoteFn fq.QueueNoteFn,
    	execFn func()) {
    	fs, pl, isExempt, req, startWaitingTime := cfgCtlr.startRequest(ctx, requestDigest, noteFn, workEstimator, queueNoteFn)
    	queued := startWaitingTime != time.Time{}
    	if req == nil {
    		if queued {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    }
    
    // startRequest classifies and, if appropriate, enqueues the request.
    // Returns a nil Request if and only if the request is to be rejected.
    // The returned bool indicates whether the request is exempt from
    // limitation.  The startWaitingTime is when the request started
    // waiting in its queue, or `Time{}` if this did not happen.
    func (cfgCtlr *configController) startRequest(ctx context.Context, rd RequestDigest,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go

    	cqs.cts.lock.Lock()
    	defer cqs.cts.lock.Unlock()
    	klog.V(7).Infof("For %p QS %s, countActive==%d", cqs, cqs.qc.Name, cqs.countActive)
    	return cqs.countActive == 0
    }
    
    func (cqs *ctlrTestQueueSet) StartRequest(ctx context.Context, width *fcrequest.WorkEstimate, hashValue uint64, flowDistinguisher, fsName string, descr1, descr2 interface{}, queueNoteFn fq.QueueNoteFn) (req fq.Request, idle bool) {
    	cqs.cts.lock.Lock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go

    // Values passed through a request's decision
    const (
    	// Serve this one
    	decisionExecute requestDecision = iota
    
    	// This one's context timed out / was canceled
    	decisionCancel
    )
    
    // StartRequest begins the process of handling a request.  We take the
    // approach of updating the metrics about total requests queued and
    // executing at each point where there is a change in that quantity,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 16:59:21 UTC 2024
    - 42.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    // automatically even if the server doesn't cancel is explicitly.
    // This is required to ensure we won't be leaking goroutines that wait for context
    // cancelling (e.g. in queueset::StartRequest method).
    // Even though in production we are not using httptest.Server, this logic is shared
    // across these two.
    func TestContextClosesOnRequestProcessed(t *testing.T) {
    	epmetrics.Register()
    	fcmetrics.Register()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Conn).ReadMIMEHeader", Method, 0},
    		{"(*Conn).ReadResponse", Method, 0},
    		{"(*Conn).StartRequest", Method, 0},
    		{"(*Conn).StartResponse", Method, 0},
    		{"(*Error).Error", Method, 0},
    		{"(*Pipeline).EndRequest", Method, 0},
    		{"(*Pipeline).EndResponse", Method, 0},
    		{"(*Pipeline).Next", Method, 0},
    		{"(*Pipeline).StartRequest", Method, 0},
    		{"(*Pipeline).StartResponse", Method, 0},
    		{"(*Reader).DotReader", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top