Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for start (0.13 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

        require(length < bytesOut.size - lastFrame.start)
    
        // Move everything from bytesOut into a new buffer.
        val fullBuffer = Buffer()
        bytesOut.read(fullBuffer, bytesOut.size)
    
        // Copy back all but what we're truncating.
        fullBuffer.read(bytesOut, lastFrame.start + length)
        outFrames.add(OutFrame(lastFrame.sequence, lastFrame.start, true))
        return writer
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

          noCoalescedConnections = true
        }
      }
    
      internal fun incrementSuccessCount() {
        this.withLock {
          successCount++
        }
      }
    
      @Throws(IOException::class)
      fun start() {
        idleAtNs = System.nanoTime()
        if (protocol == Protocol.HTTP_2 || protocol == Protocol.H2_PRIOR_KNOWLEDGE) {
          startHttp2()
        }
      }
    
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        /** Returns true if this task is ready to start. */
        fun isReady() = true
    
        /** Do this task's work, and then start another, such as by calling [startNextTask]. */
        fun start()
      }
    
      private object TestThreadSerialTask : SerialTask {
        override fun start() = error("unexpected call")
      }
    
      inner class RunnableSerialTask(
        private val runnable: Runnable,
      ) : SerialTask {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

                cancelAll()
              } finally {
                coordinatorWaiting = false
              }
            }
          }
        }
      }
    
      /** Start another thread, unless a new thread is already scheduled to start. */
      private fun startAnotherThread() {
        lock.assertHeld()
        if (executeCallCount > runCallCount) return // A thread is still starting.
    
        executeCallCount++
    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. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

              }
            },
          )
            .setPriority(REQUEST_PRIORITY_MEDIUM)
            .setDirectExecutorAllowed(true)
            .setTrafficStatsTag(101)
            .build()
    
        req.start()
        return completableFuture
      }
    
      @Test
      fun urlConnection() {
        val conn = engine.openConnection(URL("https://google.com/robots.txt")) as HttpURLConnection
    
        val text =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 24 13:19:43 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        user.addPlanToCancel(this)
        try {
          if (tunnelRequest != null) {
            val tunnelResult = connectTunnel()
    
            // Tunnel didn't work. Start it all again.
            if (tunnelResult.nextPlan != null || tunnelResult.throwable != null) {
              return tunnelResult
            }
          }
    
          if (route.address.sslSocketFactory != null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      /**
       * Starts the server on the loopback interface for the given port.
       *
       * @param port the port to listen to, or 0 for any available port. Automated tests should always
       * use port 0 to avoid flakiness when a specific port is unavailable.
       */
      @Throws(IOException::class)
      @JvmOverloads
      fun start(port: Int = 0) = start(InetAddress.getByName("localhost"), port)
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

          Http2Connection.Builder(true, TaskRunner.INSTANCE)
            .socket(peer.openSocket())
            .pushObserver(Http2ConnectionTest.IGNORE)
            .listener(realConnection)
            .build()
        connection.start(sendConnectionPreface = false)
    
        // verify the peer received the ACK
        val ackFrame = peer.takeFrame()
        assertThat(ackFrame.type).isEqualTo(Http2.TYPE_SETTINGS)
        assertThat(ackFrame.streamId).isEqualTo(0)
    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)
  9. okhttp/src/test/java/okhttp3/DispatcherTest.kt

        val thread =
          Thread {
            try {
              call.execute()
              throw AssertionError()
            } catch (expected: IOException) {
            }
          }
        thread.start()
        return thread
      }
    
      private fun newRequest(url: String): Request {
        return Request.Builder().url(url).build()
      }
    
      private fun newRequest(
        url: String,
        tag: String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *  * **b3a**: b3 + 0x80
     *  * **b2b3**: (b2 << 7) + b3
     *
     * b0
     * --
     *
     * The inclusive start of the range. We get the first 14 bits of this code point from the section
     * and the last 7 bits from this byte.
     *
     * The end of the range is not encoded, but can be inferred by looking at the start of the range
     * that follows.
     *
     * b1
     * --
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top