Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 120 for tout (0.13 sec)

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

        // Connections are replaced if they idle out or are evicted from the pool
        evictAllConnections(pool)
        assertThat(pool.connectionCount()).isEqualTo(2)
        forceConnectionsToExpire(pool, expireTime)
        assertThat(pool.connectionCount()).isEqualTo(2)
    
        // Excess connections aren't removed until they idle out, even if no longer needed
        setPolicy(pool, address, ConnectionPool.AddressPolicy(1))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java

            .post(requestBody)
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new PostMultipart().run();
      }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jun 24 12:59:42 GMT 2019
    - 2.2K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/guide/PostExample.java

        PostExample example = new PostExample();
        String json = example.bowlingJson("Jesse", "Jake");
        String response = example.post("http://www.roundsapp.com/post", json);
        System.out.println(response);
      }
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

          var readyTask: Task? = null
          var multipleReadyTasks = false
    
          // Decide what to run. This loop's goal wants to:
          //  * Find out what this thread should do (either run a task or sleep)
          //  * Find out if there's enough work to start another thread.
          eachQueue@ for (queue in readyQueues) {
            val candidate = queue.futureTasks[0]
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

        if (cancel) {
          cancel = false
          eventSource.cancel()
        }
      }
    
      private fun nextEvent(): Any {
        return events.poll(10, TimeUnit.SECONDS)
          ?: throw AssertionError("Timed out waiting for event.")
      }
    
      fun assertExhausted() {
        assertThat(events).isEmpty()
      }
    
      fun assertEvent(
        id: String?,
        type: String?,
        data: String,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

      names: List<String>,
    ) {
      var time = System.currentTimeMillis()
      for (dns in dnsProviders) {
        println("Testing ${dns.url}")
        for (host in names) {
          print("$host: ")
          System.out.flush()
          try {
            val results = dns.lookup(host)
            println(results)
          } catch (uhe: UnknownHostException) {
            var e: Throwable? = uhe
            while (e != null) {
              println(e)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

        val skipBuffer = Buffer()
        while (read(skipBuffer, 8192) != -1L) {
          skipBuffer.clear()
        }
        true // Success! The source has been exhausted.
      } catch (_: InterruptedIOException) {
        false // We ran out of time before exhausting the source.
      } finally {
        if (originalDurationNs == Long.MAX_VALUE) {
          timeout().clearDeadline()
        } else {
          timeout().deadlineNanoTime(nowNs + originalDurationNs)
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. docs/contribute/code_of_conduct.md

     * **Be pragmatic**: Questions are encouraged and should be asked early in the process to avoid
       problems later. Be thoughtful and considerate when seeking out the appropriate forum for your
       questions. Those who are asked should be responsive and helpful.
    
     * **Step down considerately**: Members of every project come and go. When somebody leaves or
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Handshake.kt

            }
    
          return Handshake(
            tlsVersion,
            cipherSuite,
            localCertificates.toImmutableList(),
          ) { peerCertificatesCopy }
        }
    
        private fun Array<out Certificate>?.toImmutableList(): List<Certificate> {
          return if (this != null) {
            immutableListOf(*this)
          } else {
            emptyList()
          }
        }
    
        @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

          }
          socketHost = proxyAddress.socketHost
          socketPort = proxyAddress.port
        }
    
        if (socketPort !in 1..65535) {
          throw SocketException("No route to $socketHost:$socketPort; port is out of range")
        }
    
        if (proxy.type() == Proxy.Type.SOCKS) {
          mutableInetSocketAddresses += InetSocketAddress.createUnresolved(socketHost, socketPort)
        } else {
          val addresses =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
Back to top