Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for retryOnConnectionFailure (0.27 sec)

  1. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val dns: Dns = client.dns
        val followSslRedirects: Boolean = client.followSslRedirects
        val followRedirects: Boolean = client.followRedirects
        val retryOnConnectionFailure: Boolean = client.retryOnConnectionFailure
        val callTimeoutMillis: Int = client.callTimeoutMillis
        val connectTimeoutMillis: Int = client.connectTimeoutMillis
        val readTimeoutMillis: Int = client.readTimeoutMillis
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

            .eventListenerFactory(loggingEventListenerFactory)
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .retryOnConnectionFailure(false)
            .build()
        url = server.url("/")
      }
    
      @Test
      fun get() {
        assumeNotWindows()
        server.enqueue(
          MockResponse.Builder()
            .body("Hello!")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/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 =
          MockStreamHandler()
            .sendResponse("success!")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  4. okhttp/api/okhttp.api

    	public final fun -deprecated_proxySelector ()Ljava/net/ProxySelector;
    	public final fun -deprecated_readTimeoutMillis ()I
    	public final fun -deprecated_retryOnConnectionFailure ()Z
    	public final fun -deprecated_socketFactory ()Ljavax/net/SocketFactory;
    	public final fun -deprecated_sslSocketFactory ()Ljavax/net/ssl/SSLSocketFactory;
    	public final fun -deprecated_writeTimeoutMillis ()I
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  5. 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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        server.enqueue(
          MockResponse(socketPolicy = ResetStreamAtStart(errorCode!!.httpCode)),
        )
        server.enqueue(MockResponse(body = "abc"))
        client =
          client.newBuilder()
            .retryOnConnectionFailure(false)
            .build()
        val call = client.newCall(Request(server.url("/")))
        assertFailsWith<StreamResetException> {
          call.execute()
        }.also { expected ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. 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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
Back to top