Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for ConnectTimeout (0.22 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                            }
                        }
                    }
    
                    PlexusConfiguration connectTimeoutXml = config.getChild("connectTimeout", false);
                    if (connectTimeoutXml != null) {
                        connectTimeout = Integer.parseInt(connectTimeoutXml.getValue());
                    } else {
                        // fallback configuration name
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Mar 19 13:42:58 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/curl/CurlRequest.java

         * Sets the connection and read timeouts for the request.
         *
         * @param connectTimeout the connection timeout in milliseconds
         * @param readTimeout the read timeout in milliseconds
         * @return this CurlRequest instance
         */
        public CurlRequest timeout(final int connectTimeout, final int readTimeout) {
            this.connectTimeout = connectTimeout;
            this.readTimeout = readTimeout;
            return this;
        }
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 19.7K bytes
    - Click Count (0)
  3. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

        ).filter { it.isSupported() }
    
      @Throws(IOException::class)
      override fun connectSocket(
        socket: Socket,
        address: InetSocketAddress,
        connectTimeout: Int,
      ) {
        try {
          socket.connect(address, connectTimeout)
        } catch (e: ClassCastException) {
          // On android 8.0, socket.connect throws a ClassCastException due to a bug
          // see https://issuetracker.google.com/issues/63649622
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Oct 10 05:19:46 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

          listOf()
        }
      }
    
      @Throws(IOException::class)
      open fun connectSocket(
        socket: Socket,
        address: InetSocketAddress,
        connectTimeout: Int,
      ) {
        socket.connect(address, connectTimeout)
      }
    
      open fun log(
        message: String,
        level: Int = INFO,
        t: Throwable? = null,
      ) {
        val logLevel = if (level == WARN) Level.WARNING else Level.INFO
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt

        override: OverrideParam =
          burstValues(
            OverrideParam.Authenticator,
            OverrideParam.Cache,
            OverrideParam.CertificatePinner,
            OverrideParam.ConnectTimeout,
            OverrideParam.ConnectionPool,
            OverrideParam.CookieJar,
            OverrideParam.Dns,
            OverrideParam.HostnameVerifier,
            OverrideParam.Proxy,
            OverrideParam.ProxyAuthenticator,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

         *
         * The connect timeout is applied when connecting a TCP socket to the target host. The default
         * value is 10 seconds.
         */
        fun connectTimeout(
          timeout: Long,
          unit: TimeUnit,
        ) = apply {
          connectTimeout = checkDuration("timeout", timeout, unit)
        }
    
        /**
         * Sets the default connect timeout for new connections. A value of 0 means no timeout,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 51.5K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

        server.close()
    
        client =
          client
            .newBuilder()
            .proxySelector(proxySelector)
            .readTimeout(Duration.ofMillis(100))
            .connectTimeout(Duration.ofMillis(100))
            .build()
    
        val request = Request(server.url("/"))
        assertFailsWith<IOException> {
          client.newCall(request).execute()
        }.also { expected ->
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

          Request
            .Builder()
            .url(server.url("/"))
            .build()
        val response = client.newCall(request).execute()
        response.body.close()
      }
    
      @Test
      fun connectTimeout() {
        val interceptor1 =
          Interceptor { chainA: Interceptor.Chain ->
            assertThat(chainA.connectTimeoutMillis()).isEqualTo(5000)
            val chainB = chainA.withConnectTimeout(100, TimeUnit.MILLISECONDS)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 16:11:23 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  9. src/main/java/jcifs/http/NtlmHttpURLConnection.java

                }
                return message;
            }
        }
    
        private void reconnect() throws IOException {
            final int readTimeout = getReadTimeout();
            final int connectTimeout = getConnectTimeout();
    
            HostnameVerifier hv = null;
            SSLSocketFactory ssf = null;
            if (this.connection instanceof HttpsURLConnection) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt

            localhostIpv4,
            localhostIpv6,
          )
    
        client =
          clientTestRule
            .newClientBuilder()
            .eventListenerFactory(clientTestRule.wrap(eventRecorder))
            .connectTimeout(60, TimeUnit.SECONDS) // Deliberately exacerbate slow fallbacks.
            .dns { dnsResults }
            .fastFallback(true)
            .build()
        url =
          serverIpv4
            .url("/")
            .newBuilder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.6K bytes
    - Click Count (0)
Back to Top