Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unacknowledgedPingFailsConnection (0.15 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

        client.processNextFrame() // Pong.
        taskFaker.advanceUntil(ns(1500L))
        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
      }
    
      @Test
      fun unacknowledgedPingFailsConnection() {
        client.initWebSocket(random, pingIntervalMillis = 500)
    
        // Don't process the ping and pong frames!
        taskFaker.advanceUntil(ns(500L))
        taskFaker.advanceUntil(ns(1000L))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

       * responding to pings. The client should give up when attempting to send its 2nd ping, at about
       * 1000 ms.
       */
      @Test
      fun unacknowledgedPingFailsConnection() {
        assumeNotWindows()
        client =
          client
            .newBuilder()
            .pingInterval(Duration.ofMillis(500))
            .build()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top