Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for startRequest (0.53 sec)

  1. src/net/textproto/pipeline.go

    func (p *Pipeline) Next() uint {
    	p.mu.Lock()
    	id := p.id
    	p.id++
    	p.mu.Unlock()
    	return id
    }
    
    // StartRequest blocks until it is time to send (or, if this is a server, receive)
    // the request with the given id.
    func (p *Pipeline) StartRequest(id uint) {
    	p.request.Start(id)
    }
    
    // EndRequest notifies p that the request with the given id has been sent
    // (or, if this is a server, received).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 08 16:19:51 UTC 2020
    - 3K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/no-restraint.go

    }
    
    func (noRestraint) BeginConfigChange(qCfg fq.QueuingConfig) (fq.QueueSetCompleter, error) {
    	return noRestraintCompleter{}, nil
    }
    
    func (noRestraint) IsIdle() bool {
    	return false
    }
    
    func (noRestraint) StartRequest(ctx context.Context, workEstimate *fcrequest.WorkEstimate, hashValue uint64, flowDistinguisher, fsName string, descr1, descr2 interface{}, queueNoteFn fq.QueueNoteFn) (fq.Request, bool) {
    	return noRestraintRequest{}, false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top