Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for serverAddrs (0.18 sec)

  1. internal/http/listener_test.go

    					continue nextTest
    				}
    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    		}
    
    		for _, serverAddr := range listener.Addrs() {
    			conn, err := net.Dial("tcp", serverAddr.String())
    			if err != nil {
    				t.Fatalf("Test %d: error: expected = <nil>, got = %v", i+1, err)
    			}
    			conn.Close()
    		}
    
    		listener.Close()
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. internal/http/listener.go

    func newHTTPListener(ctx context.Context, serverAddrs []string, opts TCPOptions) (listener *httpListener, listenErrs []error) {
    	listeners := make([]net.Listener, 0, len(serverAddrs))
    	listenErrs = make([]error, len(serverAddrs))
    
    	// Unix listener with special TCP options.
    	listenCfg := net.ListenConfig{
    		Control: setTCPParametersFn(opts),
    	}
    
    	for i, serverAddr := range serverAddrs {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. internal/config/identity/ldap/config.go

    		val, _, _ := s.ResolveConfigParam(config.IdentityLDAPSubSys, config.Default, cfgParam, false)
    		return val
    	}
    
    	ldapServer := getCfgVal(ServerAddr)
    	if ldapServer == "" {
    		return l, nil
    	}
    	l.LDAP = ldap.Config{
    		ServerAddr:    ldapServer,
    		SRVRecordName: getCfgVal(SRVRecordName),
    		TLS: &tls.Config{
    			MinVersion:         tls.VersionTLS12,
    			NextProtos:         []string{"h2", "http/1.1"},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 07 12:59:47 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. cmd/net_test.go

    		if !apiEndpointSet.Contains(testCase.expectedResult) {
    			t.Fatalf("test %d: expected: Found, got: Not Found", i+1)
    		}
    	}
    }
    
    func TestCheckLocalServerAddr(t *testing.T) {
    	testCases := []struct {
    		serverAddr  string
    		expectedErr error
    	}{
    		{":54321", nil},
    		{"localhost:54321", nil},
    		{"0.0.0.0:9000", nil},
    		{":0", nil},
    		{"localhost", nil},
    		{"", fmt.Errorf("invalid argument")},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. internal/config/identity/ldap/help.go

    		return config.DefaultHelpPostfix(DefaultKVS, key)
    	}
    
    	Help = config.HelpKVS{
    		config.HelpKV{
    			Key:         ServerAddr,
    			Description: `AD/LDAP server address e.g. "myldap.com" or "myldapserver.com:636"` + defaultHelpPostfix(ServerAddr),
    			Type:        "address",
    			Sensitive:   true,
    		},
    		config.HelpKV{
    			Key:         SRVRecordName,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. cmd/net.go

    	if addr1Local && addr2Local {
    		if port1 == port2 {
    			return true, nil
    		}
    	}
    	return false, nil
    }
    
    // CheckLocalServerAddr - checks if serverAddr is valid and local host.
    func CheckLocalServerAddr(serverAddr string) error {
    	host, err := xnet.ParseHost(serverAddr)
    	if err != nil {
    		return config.ErrInvalidAddressFlag(err)
    	}
    
    	// 0.0.0.0 is a wildcard address and refers to local network
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. cmd/endpoint_test.go

    		"http://localhost:9001/d2",
    		"http://127.0.0.1:9002/d3",
    		case6Endpoint,
    	}
    	case6URLs, case6LocalFlags := getExpectedEndpoints(args, "http://"+nonLoopBackIP+":9003/")
    
    	testCases := []struct {
    		serverAddr         string
    		args               []string
    		expectedServerAddr string
    		expectedEndpoints  Endpoints
    		expectedSetupType  SetupType
    		expectedErr        error
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. cmd/endpoint-ellipses_test.go

    import (
    	"fmt"
    	"reflect"
    	"testing"
    
    	"github.com/minio/pkg/v3/ellipses"
    )
    
    // Tests create endpoints with ellipses and without.
    func TestCreateServerEndpoints(t *testing.T) {
    	testCases := []struct {
    		serverAddr string
    		args       []string
    		success    bool
    	}{
    		// Invalid input.
    		{"", []string{}, false},
    		// Range cannot be negative.
    		{":9000", []string{"/export1{-1...1}"}, false},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  9. cmd/endpoint-ellipses.go

    // both ellipses and without ellipses transparently.
    func createServerEndpoints(serverAddr string, poolArgs []poolDisksLayout, legacy bool) (
    	endpointServerPools EndpointServerPools, setupType SetupType, err error,
    ) {
    	if len(poolArgs) == 0 {
    		return nil, -1, errInvalidArgument
    	}
    
    	poolEndpoints, setupType, err := CreatePoolEndpoints(serverAddr, poolArgs...)
    	if err != nil {
    		return nil, -1, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. cmd/endpoint.go

    func CreatePoolEndpoints(serverAddr string, poolsLayout ...poolDisksLayout) ([]Endpoints, SetupType, error) {
    	var setupType SetupType
    
    	if isEmptyLayout(poolsLayout...) {
    		return nil, setupType, config.ErrInvalidErasureEndpoints(nil).Msg("invalid number of endpoints")
    	}
    
    	// Check whether serverAddr is valid for this host.
    	if err := CheckLocalServerAddr(serverAddr); err != nil {
    		return nil, setupType, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
Back to top