Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for readTimeout (0.08 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

            val doReadTimeout = callerIsIdle || doReadTimeout()
            if (doReadTimeout) {
              readTimeout.enter()
            }
            try {
              waitForIo()
            } finally {
              if (doReadTimeout) {
                readTimeout.exitAndThrowIfTimedOut()
              }
            }
          }
          if (headersQueue.isNotEmpty()) {
            return headersQueue.removeFirst()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        )
        server.enqueue(
          MockResponse
            .Builder()
            .body("DEF")
            .build(),
        )
        val urlConnection = server.url("/").toUrl().openConnection()
        urlConnection!!.readTimeout = 1000
        val inputStream = urlConnection.getInputStream()
        assertThat(inputStream!!.read()).isEqualTo('A'.code)
        assertThat(inputStream.read()).isEqualTo('B'.code)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

     * @param source the source used to read bytes from the socket.
     */
    internal fun Socket.isHealthy(source: BufferedSource): Boolean =
      try {
        val readTimeout = soTimeout
        try {
          soTimeout = 1
          !source.exhausted()
        } finally {
          soTimeout = readTimeout
        }
      } catch (_: SocketTimeoutException) {
        true // Read timed out; socket is good.
      } catch (_: IOException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
  4. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client: OkHttpClient = OkHttpClient.Builder()
              .connectTimeout(5, TimeUnit.SECONDS)
              .writeTimeout(5, TimeUnit.SECONDS)
              .readTimeout(5, TimeUnit.SECONDS)
              .callTimeout(10, TimeUnit.SECONDS)
              .build()
    
          fun run() {
            val request = Request.Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  5. .github/workflows/codeql-analysis.yml

          env:
            # Set the DEVELOCITY_ACCESS_KEY so that a Build Scan is generated
            DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
            # Potential stop-gap solution for ReadTimeout issues with the Gradle Build Cache
            # https://gradle.slack.com/archives/CHDLT99C6/p1636477584059200
            GRADLE_OPTS: -Dhttp.keepAlive=false
    
        - name: Compile with Gradle without publishing a Build Scan
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Aug 21 23:08:02 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        // headers, but there was still no stream to close.
        if (canceled) {
          stream!!.closeLater(ErrorCode.CANCEL)
          throw IOException("Canceled")
        }
        stream!!.readTimeout().timeout(chain.readTimeoutMillis.toLong(), TimeUnit.MILLISECONDS)
        stream!!.writeTimeout().timeout(chain.writeTimeoutMillis.toLong(), TimeUnit.MILLISECONDS)
      }
    
      override fun flushRequest() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 7K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/storage/StorageClient.java

     *   <li>secretKey - The secret key for authentication</li>
     *   <li>connectTimeout - Connection timeout in milliseconds (default: 10000)</li>
     *   <li>writeTimeout - Write timeout in milliseconds (default: 10000)</li>
     *   <li>readTimeout - Read timeout in milliseconds (default: 10000)</li>
     * </ul>
     *
     * <p>The client supports URLs in the format: {@code storage://bucket-name/object-path}
     *
     * <p>Features:
     * <ul>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 17.9K bytes
    - Viewed (2)
  8. 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) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  9. okhttp/api/jvm/okhttp.api

    	public final fun proxySelector (Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder;
    	public final fun readTimeout (JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;
    	public final fun readTimeout (Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;
    	public final fun readTimeout-LRDsOJo (J)Lokhttp3/OkHttpClient$Builder;
    	public final fun retryOnConnectionFailure (Z)Lokhttp3/OkHttpClient$Builder;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        // First request: time out after 1s.
        client =
          client
            .newBuilder()
            .readTimeout(Duration.ofSeconds(1))
            .build()
        executeSynchronously("/a").assertBody("abc")
    
        // Second request: time out after 250ms.
        client =
          client
            .newBuilder()
            .readTimeout(Duration.ofMillis(250))
            .build()
        val request = Request.Builder().url(server.url("/b")).build()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top