Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for getHosts (0.13 sec)

  1. internal/grid/debug.go

    }
    
    // SetupTestGrid creates a new grid for testing purposes.
    // Select the number of hosts to create.
    // Call (TestGrid).Cleanup() when done.
    func SetupTestGrid(n int) (*TestGrid, error) {
    	hosts, listeners, err := getHosts(n)
    	if err != nil {
    		return nil, err
    	}
    	dialer := &net.Dialer{
    		Timeout: 5 * time.Second,
    	}
    	var res TestGrid
    	res.Hosts = hosts
    	ready := make(chan struct{})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. internal/grid/connection_test.go

    	"time"
    
    	"github.com/minio/minio/internal/logger/target/testlogger"
    )
    
    func TestDisconnect(t *testing.T) {
    	defer testlogger.T.SetLogTB(t)()
    	defer timeout(10 * time.Second)()
    	hosts, listeners, _ := getHosts(2)
    	dialer := &net.Dialer{
    		Timeout: 1 * time.Second,
    	}
    	errFatal := func(err error) {
    		t.Helper()
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    	wrapServer := func(handler http.Handler) http.Handler {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 08 21:44:00 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        assertEquals("::1", HostAndPort.fromString("[::1]:80").requireBracketsForIPv6().getHost());
        // Non-bracketed non-IPv6 works fine.
        assertEquals("x", HostAndPort.fromString("x").requireBracketsForIPv6().getHost());
        assertEquals("x", HostAndPort.fromString("x:80").requireBracketsForIPv6().getHost());
    
        // Non-bracketed IPv6 fails.
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/FessBoot.java

                    fessLogPath = "../../logs";
                }
                op.replace("fess.log.path", fessLogPath.replace("\\", "/"));
            }).asYouLikeIt(resource -> {
                final Host host = resource.getHost();
                if (host instanceof final StandardHost standardHost) {
                    standardHost.setErrorReportValveClass(SuppressErrorReportValve.class.getName());
                }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                }
                return url;
            }
    
            public String getCacheKey() {
                return getHost() + ":" + getPort();
            }
    
            public String getHost() {
                return uri.getHost();
            }
    
            public int getPort() {
                int port = uri.getPort();
                if (port == -1) {
                    port = DEFAULT_FTP_PORT;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

            ftpInfo = new FtpClient.FtpInfo(value);
            assertEquals(value, ftpInfo.toUrl());
            assertEquals("123.123.123.123:9999", ftpInfo.getCacheKey());
            assertEquals("123.123.123.123", ftpInfo.getHost());
            assertEquals(9999, ftpInfo.getPort());
            assertEquals("/", ftpInfo.getParent());
            assertNull(ftpInfo.getName());
    
            value = "ftp://123.123.123.123/test.txt";
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/DefaultMirrorSelector.java

         */
        static boolean isExternalRepo(ArtifactRepository originalRepository) {
            try {
                URL url = new URL(originalRepository.getUrl());
                return !(isLocal(url.getHost()) || url.getProtocol().equals("file"));
            } catch (MalformedURLException e) {
                // bad url just skip it here. It should have been validated already, but the wagon lookup will deal with it
                return false;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NetServerEnumIterator.java

            if ( locator.getURL().getHost().isEmpty() ) {
                this.request = new NetServerEnum2(th.getConfig(), th.getOEMDomainName(), NetServerEnum2.SV_TYPE_DOMAIN_ENUM);
                this.response = new NetServerEnum2Response(th.getConfig());
            }
            else if ( this.workgroup ) {
                this.request = new NetServerEnum2(th.getConfig(), locator.getURL().getHost(), NetServerEnum2.SV_TYPE_ALL);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/Handler.java

        }
        public URLConnection openConnection( URL u ) throws IOException {
            return new SmbFile( u );
        }
        protected void parseURL( URL u, String spec, int start, int limit ) {
            String host = u.getHost();
            String path, ref;
            int port;
    
            if( spec.equals( "smb1://" )) {
                spec = "smb1:////";
                limit += 2;
            } else if( spec.startsWith( "smb1://" ) == false &&
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java

                final AuthScheme authScheme = authentication.getAuthScheme();
                if (authScope.getHost() != null && authScheme != null) {
                    final HttpHost targetHost = new HttpHost(authScope.getHost(), authScope.getPort());
                    authCache.put(targetHost, authScheme);
                }
            }
    
            httpClientContext.setAuthCache(authCache);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top