Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for yLongs (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

          SocketTimeoutException::class.java,
          "sent ping but didn't receive pong within 500ms (after 0 successful ping/pongs)",
        )
      }
    
      @Test
      fun unexpectedPongsDoNotInterfereWithFailureDetection() {
        client.initWebSocket(random, pingIntervalMillis = 500)
    
        // At 0ms the server sends 3 unexpected pongs. The client accepts 'em and ignores em.
        server.webSocket!!.pong("pong 1".encodeUtf8())
        client.processNextFrame()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

            .build(),
        )
        val webSocket = newWebSocket()
        clientListener.assertOpen()
        val server = serverListener.assertOpen() as RealWebSocket
        Thread.sleep(1000)
    
        // No pings and no pongs.
        assertThat(webSocket.sentPingCount()).isEqualTo(0)
        assertThat(webSocket.receivedPingCount()).isEqualTo(0)
        assertThat(webSocket.receivedPongCount()).isEqualTo(0)
        assertThat(server.sentPingCount()).isEqualTo(0)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        }
      }
    
      /**
       * Attempts to remove a single frame from a queue and send it. This prefers to write urgent pongs
       * before less urgent messages and close frames. For example it's possible that a caller will
       * enqueue messages followed by pongs, but this sends pongs followed by messages. Pongs are always
       * written in the order they were enqueued.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
Back to top