Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for 1003 (0.25 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

          Route(
            factory.newAddress(uriHost = "1.2.3.4", uriPort = 1003),
            Proxy.NO_PROXY,
            InetSocketAddress(ipv4Address, 1003),
          ).toString(),
        ).isEqualTo("1.2.3.4:1003")
        assertThat(
          Route(
            factory.newAddress(uriHost = "example.com", uriPort = 1003),
            Proxy.NO_PROXY,
            InetSocketAddress(ipv4Address, 1003),
          ).toString(),
        ).isEqualTo("example.com at 1.2.3.4:1003")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code must be in range [1000,5000): 98724976")
        }
      }
    
      @Test fun closeReservedThrows() {
        assertFailsWith<IllegalArgumentException> {
          clientWriter.writeClose(1005, "Hello".encodeUtf8())
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code 1005 is reserved and may not be used.")
        }
      }
    
      @Test fun serverEmptyPing() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

        /** How long to wait to retry pre-emptive connection attempts that fail. */
        @JvmField val backoffDelayMillis: Long = 60 * 1000,
        /** How much jitter to introduce in connection retry backoff delays */
        @JvmField val backoffJitterMillis: Int = 100,
      )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

      /**
       * It's invalid to have a label longer than 63 characters. If that's requested, the encoder may
       * overflow and return null.
       */
      @Test fun overflowEncodingOversizedLabel() {
        val a1000 = "a".repeat(1000)
        val a1000MaxCodePoint = a1000 + "\udbff\udfff"
        testEncodeDecode(
          a1000MaxCodePoint,
          "xn--$a1000-nc89312g",
        )
        assertNull(
          Punycode.encode(a1000MaxCodePoint.repeat(2)),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      }
    
      @Test
      fun streamDiscardingIsTimely() {
        // This response takes at least a full second to serve: 10,000 bytes served 100 bytes at a time.
        server.enqueue(
          MockResponse.Builder()
            .body(Buffer().write(ByteArray(10000)))
            .throttleBody(100, 10, TimeUnit.MILLISECONDS)
            .build(),
        )
        server.enqueue(
          MockResponse(body = "A"),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/AutobahnTester.kt

            ) {
              webSocket.send(text)
            }
    
            override fun onClosing(
              webSocket: WebSocket,
              code: Int,
              reason: String,
            ) {
              webSocket.close(1000, null)
              latch.countDown()
            }
    
            override fun onFailure(
              webSocket: WebSocket,
              t: Throwable,
              response: Response?,
            ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/DuplexTest.kt

        assertThat(log.take()!!)
          .contains("StreamResetException: stream was reset: CANCEL")
      }
    
      /**
       * We delay sending the last byte of the request body 1500 ms. The 1000 ms read timeout should
       * only elapse 1000 ms after the request body is sent.
       */
      @Test
      fun headersReadTimeoutDoesNotStartUntilLastRequestBodyByteFire() {
        enableProtocol(Protocol.HTTP_2)
        server.enqueue(
    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)
  8. samples/slack/src/main/java/okhttp3/slack/RtmSession.java

      @Override public void onMessage(WebSocket webSocket, String text) {
        System.out.println("onMessage: " + text);
      }
    
      @Override public void onClosing(WebSocket webSocket, int code, String reason) {
        webSocket.close(1000, null);
        System.out.println("onClose (" + code + "): " + reason);
      }
    
      @Override public void onFailure(WebSocket webSocket, Throwable t, Response response) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Nov 19 20:16:58 GMT 2016
    - 2.4K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

            .build()
    
        try {
          for (i in 1..2) {
            // Space out traffic to make it easier to demarcate.
            sendTestRequest(fbRequest)
            Thread.sleep(1000)
            sendTestRequest(twitterRequest)
            Thread.sleep(1000)
            sendTestRequest(googleRequest)
            Thread.sleep(2000)
          }
        } finally {
          client.connectionPool.evictAll()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

            .addHeader("Content-Range: bytes 1000-1001/2000")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .body("BB")
            .build(),
        )
        val url = server.url("/")
        val request =
          Request.Builder()
            .url(url)
            .header("Range", "bytes=1000-1001")
            .build()
        val range = client.newCall(request).execute()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top