Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for retryOnConnectionFailure (1.31 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        call: RealCall,
        userRequest: Request,
      ): Boolean {
        val requestSendStarted = e !is ConnectionShutdownException
    
        // The application layer has forbidden retries.
        if (!client.retryOnConnectionFailure) return false
    
        // We can't send the request body again.
        if (requestSendStarted && requestIsOneShot(e, userRequest)) return false
    
        // This exception is fatal.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. docs/changelogs/upgrading_to_okhttp_4.md

       eventListenerFactory, followRedirects, followSslRedirects, hostnameVerifier, interceptors,
       networkInterceptors, pingIntervalMillis, protocols, proxy, proxyAuthenticator, proxySelector,
       readTimeoutMillis, retryOnConnectionFailure, socketFactory, sslSocketFactory, writeTimeoutMillis
     * **PushPromise**: headers, method, path, response
     * **Request**: body, cacheControl, headers, method, url
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

      /**
       * Invoked when OkHttp decides whether to retry after a connectivity failure.
       *
       * OkHttp won't retry when it is configured not to:
       *
       *  * If retries are forbidden with [OkHttpClient.retryOnConnectionFailure]. (OkHttp's defaults
       *    permit retries.)
       *  * If OkHttp already attempted to transmit the request body, and [RequestBody.isOneShot] is
       *    true.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  4. okhttp/api/jvm/okhttp.api

    	public final fun proxyAuthenticator ()Lokhttp3/Authenticator;
    	public final fun proxySelector ()Ljava/net/ProxySelector;
    	public final fun readTimeoutMillis ()I
    	public final fun retryOnConnectionFailure ()Z
    	public final fun socketFactory ()Ljavax/net/SocketFactory;
    	public final fun sslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory;
    	public final fun webSocketCloseTimeout ()I
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

       * be readable after the request stream is canceled.
       */
      @Disabled
      @Test
      fun serverCancelsRequestBodyAndSendsResponseBody() {
        client =
          client
            .newBuilder()
            .retryOnConnectionFailure(false)
            .build()
        val log: BlockingQueue<String?> = LinkedBlockingQueue()
        enableProtocol(Protocol.HTTP_2)
        val body =
          MockSocketHandler()
            .sendResponse("success!")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          }
        client =
          client
            .newBuilder()
            .dns(DoubleInetAddressDns())
            .eventListenerFactory(clientTestRule.wrap(listener))
            .build()
        assertThat(client.retryOnConnectionFailure).isTrue()
        executeSynchronously("/").assertBody("seed connection pool")
        executeSynchronously("/").assertBody("retry success")
    
        // The call that seeds the connection pool.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  7. okhttp/api/android/okhttp.api

    	public final fun proxyAuthenticator ()Lokhttp3/Authenticator;
    	public final fun proxySelector ()Ljava/net/ProxySelector;
    	public final fun readTimeoutMillis ()I
    	public final fun retryOnConnectionFailure ()Z
    	public final fun socketFactory ()Ljavax/net/SocketFactory;
    	public final fun sslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory;
    	public final fun webSocketCloseTimeout ()I
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_3x.md

     *  Fix: Don't drop headers of healthy streams that raced with `GOAWAY` frames.
        This bug would cause HTTP/2 streams to occasional hang when the connection
        was shutting down.
     *  Fix: Honor `OkHttpClient.retryOnConnectionFailure()` when the response is a
        HTTP 408 Request Timeout. If retries are enabled, OkHttp will retry exactly
        once in response to a 408.
     *  Fix: Don't crash when reading the empty `HEAD` response body if it specifies
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

          MockResponse.Builder().onRequestStart(CloseStream(errorCode!!.httpCode)).build(),
        )
        server.enqueue(MockResponse(body = "abc"))
        client =
          client
            .newBuilder()
            .retryOnConnectionFailure(false)
            .build()
        val call = client.newCall(Request(server.url("/")))
        assertFailsWith<StreamResetException> {
          call.execute()
        }.also { expected ->
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
Back to top