Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 888760b420bb635c68de0cd84f (0.2 sec)

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

        server.processNextFrame()
        // Not closed until close reply is received.
        assertThat(client.closed).isFalse()
    
        // Manually write an invalid masked close frame.
        server.sink.write("888760b420bb635c68de0cd84f".decodeHex()).emit()
        client.processNextFrame() // Detects error, disconnects immediately since close already sent.
        client.webSocket!!.finishReader()
        assertThat(client.closed).isTrue()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

        clientWriter.writeClose(1001, null)
        assertData("888260b420bb635d")
      }
    
      @Test fun clientCloseWithCodeAndReason() {
        clientWriter.writeClose(1001, "Hello".encodeUtf8())
        assertData("888760b420bb635d68de0cd84f")
      }
    
      @Test fun closeWithOnlyReasonThrows() {
        clientWriter.writeClose(0, "Hello".encodeUtf8())
        assertData("888760b420bb60b468de0cd84f")
      }
    
      @Test fun closeCodeOutOfRangeThrows() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top