Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for froward (0.79 sec)

  1. cmd/metacache-walk.go

    	var scanDir func(path string) error
    
    	scanDir = func(current string) error {
    		// Skip forward, if requested...
    		sb := bytebufferpool.Get()
    		defer func() {
    			sb.Reset()
    			bytebufferpool.Put(sb)
    		}()
    
    		forward := ""
    		if len(opts.ForwardTo) > 0 && strings.HasPrefix(opts.ForwardTo, current) {
    			forward = strings.TrimPrefix(opts.ForwardTo, current)
    			// Trim further directories and trailing slash.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    			if err != nil {
    				h.ServeHTTP(w, r)
    				return
    			}
    			remote, self := globalSiteReplicationSys.getPeerForUpload(deplID)
    			if self {
    				h.ServeHTTP(w, r)
    				return
    			}
    			// forward request to peer handling this upload
    			if globalBucketTargetSys.isOffline(remote.EndpointURL) {
    				defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. cmd/metacache-set.go

    // The last entry can be used as a marker to resume the listing.
    func (r *metacacheReader) filter(o listPathOptions) (entries metaCacheEntriesSorted, err error) {
    	// Forward to prefix, if any
    	err = r.forwardTo(o.Prefix)
    	if err != nil {
    		return entries, err
    	}
    	if o.Marker != "" {
    		err = r.forwardTo(o.Marker)
    		if err != nil {
    			return entries, err
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  4. internal/handlers/forwarder.go

    import (
    	"context"
    	"net"
    	"net/http"
    	"net/http/httputil"
    	"net/url"
    	"strings"
    	"sync"
    	"time"
    )
    
    const defaultFlushInterval = time.Duration(100) * time.Millisecond
    
    // Forwarder forwards all incoming HTTP requests to configured transport.
    type Forwarder struct {
    	RoundTripper http.RoundTripper
    	PassHost     bool
    	Logger       func(error)
    	ErrorHandler func(http.ResponseWriter, *http.Request, error)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 07 05:42:10 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  5. cmd/dynamic-timeouts.go

    		// so decrease the timeout towards 25 % of maximum time spent.
    		max = max * 125 / 100
    
    		timeout := atomic.LoadInt64(&dt.timeout)
    		if max < time.Duration(timeout) {
    			// Move 50% toward the max.
    			timeout = (int64(max) + timeout) / 2
    		}
    		if timeout < dt.minimum {
    			timeout = dt.minimum
    		}
    		atomic.StoreInt64(&dt.timeout, timeout)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  6. cmd/metacache-stream.go

    	}
    	if r.current.name != "" {
    		return false
    	}
    	_, err := r.peek()
    	if err != nil {
    		r.err = err
    		return r.err == io.EOF
    	}
    	return false
    }
    
    // forwardTo will forward to the first entry that is >= s.
    // Will return io.EOF if end of stream is reached without finding any.
    func (r *metacacheReader) forwardTo(s string) error {
    	r.checkInit()
    	if r.err != nil {
    		return r.err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  7. cmd/server-main.go

    		if configRetriableErrors(err) {
    			return fmt.Errorf("Unable to initialize config system: %w", err)
    		}
    
    		// Any other config errors we simply print a message and proceed forward.
    		configLogIf(ctx, fmt.Errorf("Unable to initialize config, some features may be missing: %w", err))
    	}
    
    	return nil
    }
    
    func setGlobalInternodeInterface(interfaceName string) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  8. internal/event/target/kafka_scram_client_contrib.go

    	return nil
    }
    
    // Step takes a string provided from a server (or just an empty string for the
    // very first conversation step) and attempts to move the authentication
    // conversation forward.  It returns a string to be sent to the server or an
    // error if the server message is invalid.  Calling Step after a conversation
    // completes is also an error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 09 04:04:01 GMT 2023
    - 3.2K bytes
    - Viewed (1)
  9. cmd/object-lambda-handlers.go

    		tokenErr.Description = "The request token included in the request is invalid"
    		writeErrorResponse(ctx, w, tokenErr, r.URL)
    		return
    	}
    
    	// Set all the relevant lambda forward headers if found.
    	fwdHeadersToS3(resp.Header, w)
    
    	if apiErr := fwdStatusToAPIError(resp); apiErr != nil {
    		writeErrorResponse(ctx, w, *apiErr, r.URL)
    		return
    	}
    
    	if resp.StatusCode != http.StatusOK {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  10. cmd/global-heal.go

    	var retErr error
    	// Heal all buckets with all objects
    	for _, bucket := range healBuckets {
    		if tracker.isHealed(bucket) {
    			continue
    		}
    		var forwardTo string
    		// If we resume to the same bucket, forward to last known item.
    		if b := tracker.getBucket(); b != "" {
    			if b == bucket {
    				forwardTo = tracker.getObject()
    			} else {
    				// Reset to where last bucket ended if resuming.
    				tracker.resume()
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top