Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 271 for requests (0.2 sec)

  1. internal/grid/handlers.go

    			r := RemoteErr(err.Error())
    			return nil, &r
    		}
    		return payload, nil
    	}, subroute...)
    }
    
    // Requester is able to send requests to a remote.
    type Requester interface {
    	Request(ctx context.Context, h HandlerID, req []byte) ([]byte, error)
    }
    
    // Call the remote with the request and return the response.
    // The response should be returned with PutResponse when no error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  2. internal/config/api/api.go

    	"strconv"
    	"strings"
    	"time"
    
    	"github.com/minio/minio/internal/config"
    	"github.com/minio/pkg/v2/env"
    )
    
    // API sub-system constants
    const (
    	apiRequestsMax             = "requests_max"
    	apiRequestsDeadline        = "requests_deadline"
    	apiClusterDeadline         = "cluster_deadline"
    	apiCorsAllowOrigin         = "cors_allow_origin"
    	apiRemoteTransportDeadline = "remote_transport_deadline"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 01:08:07 GMT 2024
    - 11.1K bytes
    - Viewed (1)
  3. internal/grid/muxclient.go

    	var errState bool
    	if debugPrint {
    		start := time.Now()
    		defer func() {
    			fmt.Println("Mux", m.MuxID, "Request took", time.Since(start).Round(time.Millisecond))
    		}()
    	}
    
    	// Listen for client messages.
    	for {
    		if errState {
    			go func() {
    				// Drain requests.
    				for range requests {
    				}
    			}()
    			return
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  4. internal/grid/stream.go

    	responses <-chan Response
    	cancel    context.CancelCauseFunc
    
    	// Requests sent to the server.
    	// If the handler is defined with 0 incoming capacity this will be nil.
    	// Channel *must* be closed to signal the end of the stream.
    	// If the request context is canceled, the stream will no longer process requests.
    	// Requests sent cannot be used any further by the called.
    	Requests chan<- []byte
    
    	muxID uint64
    	ctx   context.Context
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 18:05:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. internal/config/cache/remote.go

    	}
    
    	if oi.CacheControl != "" {
    		w.Header().Set(xhttp.CacheControl, oi.CacheControl)
    	}
    
    	statusCode()
    }
    
    // CondCheck represents the conditional request made to the remote cache
    // for validation during GET/HEAD object requests.
    type CondCheck struct {
    	ObjectInfo
    	IfMatch           string     `json:"ifMatch,omitempty" msg:",omitempty"`
    	IfNoneMatch       string     `json:"ifNoneMatch,omitempty" msg:",omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 21:46:17 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  6. internal/grid/grid_test.go

    	errFatal(err)
    
    	// Start sending requests.
    	go func() {
    		for i := byte(0); i < 100; i++ {
    			st.Requests <- []byte{i}
    		}
    		close(st.Requests)
    	}()
    	// Now do 100 other requests to ensure that the server doesn't block.
    	for i := 0; i < 100; i++ {
    		_, err := remoteConn.Request(ctx, handlerTest2, []byte(testPayload))
    		errFatal(err)
    	}
    	// Start processing requests.
    	close(processHandler)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. internal/grid/manager.go

    	// Immutable after creation, so no locks.
    	targets map[string]*Connection
    
    	// serverside handlers.
    	handlers handlers
    
    	// local host name.
    	local string
    
    	// Validate incoming requests.
    	authRequest func(r *http.Request) error
    }
    
    // ManagerOptions are options for creating a new grid manager.
    type ManagerOptions struct {
    	Dialer       ContextDialer               // Outgoing dialer.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. internal/grid/benchmark_test.go

    				for b := range in {
    					PutByteBuffer(b)
    					got++
    				}
    				if got != requests {
    					return NewRemoteErrf("wrong number of requests. want %d, got %d", requests, got)
    				}
    				return nil
    			},
    
    			Subroute:    "some-subroute",
    			OutCapacity: 1,
    			InCapacity:  1, // Only one message buffered.
    		}))
    		errFatal(err)
    	}
    	const payloadSize = 512
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    	proxiedGetRequestsTotal             MetricName = "proxied_get_requests_total"
    	proxiedHeadRequestsTotal            MetricName = "proxied_head_requests_total"
    	proxiedPutTaggingRequestsTotal      MetricName = "proxied_put_tagging_requests_total"
    	proxiedGetTaggingRequestsTotal      MetricName = "proxied_get_tagging_requests_total"
    	proxiedDeleteTaggingRequestsTotal   MetricName = "proxied_delete_tagging_requests_total"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  10. internal/grid/connection.go

    	if err != nil {
    		return nil, err
    	}
    	cl.subroute = &c.subID
    	return cl, nil
    }
    
    // Request allows to do a single remote request.
    // 'req' will not be used after the call and caller can reuse.
    // If no deadline is set on ctx, a 1-minute deadline will be added.
    func (c *Connection) Request(ctx context.Context, h HandlerID, req []byte) ([]byte, error) {
    	if !h.valid() {
    		return nil, ErrUnknownHandler
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top