Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for maxClients (0.08 sec)

  1. cmd/handler-api.go

    func (t *apiConfig) getRequestsPool() chan struct{} {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if t.requestsPool == nil {
    		return nil
    	}
    
    	return t.requestsPool
    }
    
    // maxClients throttles the S3 API calls
    func maxClients(f http.HandlerFunc) http.HandlerFunc {
    	return func(w http.ResponseWriter, r *http.Request) {
    		globalHTTPStats.incS3RequestsIncoming()
    
    		if r.Header.Get(globalObjectPerfUserMetadata) == "" {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Sep 26 17:07:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. cmd/api-router.go

    	noGZS3HFlag = 1 << iota
    
    	// when provided, enables only tracing of headers. Otherwise, both headers
    	// and body are traced.
    	traceHdrsS3HFlag
    
    	// when provided, disables throttling via the `maxClients` middleware.
    	noThrottleS3HFlag
    )
    
    func (h s3HFlag) has(flag s3HFlag) bool {
    	// Use bitwise-AND and check if the result is non-zero.
    	return h&flag != 0
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Aug 13 15:25:16 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top