Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for typings (0.25 sec)

  1. docs/changelogs/changelog_4x.md

    ## Version 4.3.0
    
    _2019-12-31_
    
     *  Fix: Degrade HTTP/2 connections after a timeout. When an HTTP/2 stream times out it may impact
        the stream only or the entire connection. With this fix OkHttp will now send HTTP/2 pings after
        a stream timeout to determine whether the connection should remain eligible for pooling.
    
     *  Fix: Don't call `EventListener.responseHeadersStart()` or `responseBodyStart()` until bytes have
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. docs/contribute/concurrency.md

    #### Shared reader thread
    
    We can't rely on application threads to read data from the socket. Application threads are transient: sometimes they're reading and writing and sometimes they're off doing application-layer things. But the socket is permanent, and it needs constant attention: we dispatch all incoming frames so the connection is good-to-go when the application layer needs it.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/DateFormatting.kt

            // that. If any of the BROWSER_COMPATIBLE_DATE_FORMAT_STRINGS ended in "'GMT'" we'd have
            // to also check that position.getIndex() == value.length() otherwise parsing might have
            // terminated early, ignoring things like "+01:00". Leaving this as != 0 means that any
            // trailing junk is ignored.
            return result
          }
        }
      }
      return null
    }
    
    /** Returns the string for this date. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      /** True if this web socket failed and the listener has been notified. */
      private var failed = false
    
      /** Total number of pings sent by this web socket. */
      private var sentPingCount = 0
    
      /** Total number of pings received by this web socket. */
      private var receivedPingCount = 0
    
      /** Total number of pongs received by this web socket. */
      private var receivedPongCount = 0
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

         * parameters, and as it turns out Firefox and Chrome actually do rather different things, and
         * both say in their comments that they're not really sure what the right approach is. We go
         * with Chrome's behavior (which also experimentally seems to match what IE does), but if you
         * actually want to have a good chance of things working, please avoid double-quotes, newlines,
         * percent signs, and the like in your field names.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * The default value of 0 disables client-initiated pings.
         */
        fun pingInterval(
          interval: Long,
          unit: TimeUnit,
        ) = apply {
          pingInterval = checkDuration("interval", interval, unit)
        }
    
        /**
         * Sets the interval between HTTP/2 and web socket pings initiated by this client. Use this to
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      private val settingsListenerQueue = taskRunner.newQueue()
    
      /** User code to run in response to push promise events. */
      private val pushObserver: PushObserver = builder.pushObserver
    
      // Total number of pings send and received of the corresponding types. All guarded by this.
      private var intervalPingsSent = 0L
      private var intervalPongsReceived = 0L
      private var degradedPingsSent = 0L
      private var degradedPongsReceived = 0L
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  8. CHANGELOG.md

    ## Version 5.0.0-alpha.2
    
    _2021-01-30_
    
    **In this release MockWebServer has a new Maven coordinate and package name.** A longstanding
    problem with MockWebServer has been its API dependency on JUnit 4. We've reorganized things to
    remove that dependency while preserving backwards compatibility.
    
    | Maven Coordinate                                         | Package Name          | Description                       |
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_3x.md

        pings, but it did not track whether the reply pongs were received. With this
        update OkHttp requires that every ping receive a response: if it does not
        the connection will be closed and the listener's `onFailure()` method will
        be called.
    
        Web sockets have always been had pings, but pings on HTTP/2 connections is
        new in this release. Pings are used for connections that are busy carrying
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        assertThat(server.receivedPongCount()).isEqualTo(0)
        closeWebSockets(webSocket, server)
      }
    
      /**
       * Configure the websocket to send pings every 500 ms. Artificially prevent the server from
       * responding to pings. The client should give up when attempting to send its 2nd ping, at about
       * 1000 ms.
       */
      @Test
      fun unacknowledgedPingFailsConnection() {
        assumeNotWindows()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
Back to top