Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for lookupHost (0.21 sec)

  1. internal/http/dial_dnscache.go

    	"context"
    	"net"
    	"time"
    )
    
    // LookupHost is a function to make custom lookupHost for optional cached DNS requests
    type LookupHost func(ctx context.Context, host string) (addrs []string, err error)
    
    // DialContextWithLookupHost is a helper function which returns `net.DialContext` function.
    // It randomly fetches an IP via custom LookupHost function and dials it by the given dial
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 03 19:30:51 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  2. internal/http/transports.go

    var tlsClientSessionCacheSize = 100
    
    // ConnSettings - contains connection settings.
    type ConnSettings struct {
    	DialContext DialContext // Custom dialContext, DialTimeout is ignored if this is already setup.
    	LookupHost  LookupHost  // Custom lookupHost, is nil on containerized deployments.
    	DialTimeout time.Duration
    
    	// TLS Settings
    	RootCAs          *x509.CertPool
    	CipherSuites     []uint16
    	CurvePreferences []tls.CurveID
    
    	// HTTP2
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  3. cmd/utils.go

    		etag += "-1"
    	}
    
    	return etag
    }
    
    // GetDefaultConnSettings returns default HTTP connection settings.
    func GetDefaultConnSettings() xhttp.ConnSettings {
    	return xhttp.ConnSettings{
    		LookupHost:  globalDNSCache.LookupHost,
    		DialTimeout: rest.DefaultTimeout,
    		RootCAs:     globalRootCAs,
    		TCPOptions:  globalTCPOptions,
    	}
    }
    
    // NewInternodeHTTPTransport returns a transport for internode MinIO
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  4. cmd/grid.go

    	hosts, local := eps.GridHosts()
    	g, err := grid.NewManager(ctx, grid.ManagerOptions{
    		Dialer:       grid.ContextDialer(xhttp.DialContextWithLookupHost(globalDNSCache.LookupHost, xhttp.NewInternodeDialContext(rest.DefaultTimeout, globalTCPOptions))),
    		Local:        local,
    		Hosts:        hosts,
    		AddAuth:      newCachedAuthToken(),
    		AuthRequest:  storageServerRequestValidate,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. cmd/net.go

    			ipList.Add(ip.String())
    		}
    	}
    	return
    }
    
    // getHostIP returns IP address of given host.
    func getHostIP(host string) (ipList set.StringSet, err error) {
    	addrs, err := globalDNSCache.LookupHost(GlobalContext, host)
    	if err != nil {
    		return ipList, err
    	}
    
    	ipList = set.NewStringSet()
    	for _, addr := range addrs {
    		ipList.Add(addr)
    	}
    
    	return ipList, err
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. api/go1.8.txt

    pkg net, method (*Resolver) LookupHost(context.Context, string) ([]string, error)
    pkg net, method (*Resolver) LookupIPAddr(context.Context, string) ([]IPAddr, error)
    pkg net, method (*Resolver) LookupMX(context.Context, string) ([]*MX, error)
    pkg net, method (*Resolver) LookupNS(context.Context, string) ([]*NS, error)
    pkg net, method (*Resolver) LookupPort(context.Context, string, string) (int, error)
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Dec 21 05:25:57 GMT 2016
    - 16.3K bytes
    - Viewed (0)
  7. cmd/server-main.go

    		if host != "" {
    			if net.ParseIP(host) != nil {
    				ip = host
    			} else {
    				ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
    				defer cancel()
    
    				haddrs, err := globalDNSCache.LookupHost(ctx, host)
    				if err == nil {
    					ip = haddrs[0]
    				}
    			}
    		}
    		ifs, _ := net.Interfaces()
    		for _, interf := range ifs {
    			addrs, err := interf.Addrs()
    			if err == nil {
    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. cmd/common-main.go

    		domainIPs := set.NewStringSet()
    		for _, endpoint := range minioEndpoints {
    			if net.ParseIP(endpoint) == nil {
    				// Checking if the IP is a DNS entry.
    				addrs, err := globalDNSCache.LookupHost(GlobalContext, endpoint)
    				if err != nil {
    					logger.FatalIf(err, "Unable to initialize MinIO server with [%s] invalid entry found in MINIO_PUBLIC_IPS", endpoint)
    				}
    				for _, addr := range addrs {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  9. maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar

    component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(String) throws component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(String, classworlds.realm.ClassRealm) throws component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(Class) throws component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(Class, classworlds.realm.ClassRealm) throws component.repository....
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 35.3K bytes
    - Viewed (0)
  10. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-component-api/1.0-alpha-32/plexus-component-api-1.0-alpha-32.jar

    component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(String) throws component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(String, classworlds.realm.ClassRealm) throws component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(Class) throws component.repository.exception.ComponentLookupExcep; public abstract java.util.List lookupList(Class, classworlds.realm.ClassRealm) throws component.repository....
    Archive
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Tue Oct 16 20:15:40 GMT 2007
    - 35.3K bytes
    - Viewed (0)
Back to top