Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for doForward (0.09 sec)

  1. pkg/test/echo/server/forwarder/util.go

    			if nt == "" {
    				nt = network
    			}
    			addr := dnsServer
    			if addr == "" {
    				addr = address
    			}
    			return d.DialContext(ctx, nt, addr)
    		},
    	}
    }
    
    // doForward sends the requests and collect the responses.
    func doForward(ctx context.Context, cfg *Config, e *executor, doReq func(context.Context, *Config, int) (string, error)) (*proto.ForwardEchoResponse, error) {
    	// make the timeout apply to the entire set of requests
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. pkg/test/echo/server/forwarder/tcp.go

    	e *executor
    }
    
    func newTCPProtocol(e *executor) protocol {
    	return &tcpProtocol{e: e}
    }
    
    func (c *tcpProtocol) ForwardEcho(ctx context.Context, cfg *Config) (*proto.ForwardEchoResponse, error) {
    	return doForward(ctx, cfg, c.e, c.makeRequest)
    }
    
    func (c *tcpProtocol) makeRequest(ctx context.Context, cfg *Config, requestID int) (string, error) {
    	conn, err := newTCPConnection(cfg)
    	if err != nil {
    		return "", err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. pkg/test/echo/server/forwarder/http.go

    	default:
    		getTransport, closeSharedTransport = newHTTPTransportGetter(cfg)
    	}
    
    	defer closeSharedTransport()
    
    	call := &httpCall{
    		httpProtocol: c,
    		getTransport: getTransport,
    	}
    
    	return doForward(ctx, cfg, c.e, call.makeRequest)
    }
    
    func newHTTP3TransportGetter(cfg *Config) (httpTransportGetter, func()) {
    	newConn := func() *http3.RoundTripper {
    		return &http3.RoundTripper{
    			TLSClientConfig: cfg.tlsConfig,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top