Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for cleanUp (0.18 sec)

  1. okhttp-urlconnection/build.gradle.kts

      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    project.applyOsgi(
      "Fragment-Host: com.squareup.okhttp3; bundle-version=\"\${range;[==,+);\${version_cleanup;${projects.okhttp.version}}}\"",
      "Automatic-Module-Name: okhttp3.urlconnection",
      "Bundle-SymbolicName: com.squareup.okhttp3.urlconnection",
      "-removeheaders: Private-Package"
    )
    
    dependencies {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Nov 20 16:20:29 GMT 2023
    - 764 bytes
    - Viewed (0)
  2. okhttp-coroutines/src/main/kotlin/okhttp3/JvmCallExtensions.kt

    import kotlinx.coroutines.ExperimentalCoroutinesApi
    import kotlinx.coroutines.suspendCancellableCoroutine
    import okhttp3.internal.closeQuietly
    import okio.IOException
    
    @ExperimentalCoroutinesApi // resume with a resource cleanup.
    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
          object : Callback {
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Fri Apr 05 11:25:23 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        // Write metadata to the end of the file.
        writeMetadata(upstreamSize)
        file!!.channel.force(false)
    
        // Once everything else is in place we can swap the dirty header for a clean one.
        writeHeader(PREFIX_CLEAN, upstreamSize, metadata.size.toLong())
        file!!.channel.force(false)
    
        // This file is complete.
        synchronized(this@Relay) {
          complete = true
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        val request: Request
          get() = originalRequest
    
        val call: RealCall
          get() = this@RealCall
    
        /**
         * Attempt to enqueue this async call on [executorService]. This will attempt to clean up
         * if the executor has been shut down by reporting the call as failed.
         */
        fun executeOn(executorService: ExecutorService) {
          client.dispatcher.assertThreadDoesntHoldLock()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

        }
    
        override fun secureConnectEnd(
          call: Call,
          handshake: Handshake?,
        ) {
          logger.removeHandler(loggerHandler)
        }
    
        override fun callEnd(call: Call) {
          // Cleanup log handler if failed.
          logger.removeHandler(loggerHandler)
        }
    
        override fun connectionAcquired(
          call: Call,
          connection: Connection,
        ) {
          if (random != null) {
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

       * simultaneously adopted and removed.
       */
      private val connections = ConcurrentLinkedQueue<RealConnection>()
    
      init {
        // Put a floor on the keep alive duration, otherwise cleanup will spin loop.
        require(keepAliveDuration > 0L) { "keepAliveDuration <= 0: $keepAliveDuration" }
      }
    
      fun idleConnectionCount(): Int {
        return connections.count {
          it.withLock { it.calls.isEmpty() }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

       *     1
       *     100
       *     2
       *
       *     CLEAN 3400330d1dfc7f3f7f4b8d4d803dfcf6 832 21054
       *     DIRTY 335c4c6028171cfddfbaae1a9c313c52
       *     CLEAN 335c4c6028171cfddfbaae1a9c313c52 3934 2342
       *     REMOVE 335c4c6028171cfddfbaae1a9c313c52
       *     DIRTY 1ab96a171faeeee38496d8b330771a7a
       *     CLEAN 1ab96a171faeeee38496d8b330771a7a 1600 234
       *     READ 335c4c6028171cfddfbaae1a9c313c52
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

       */
      inner class FramingSource internal constructor(
        /** Maximum number of bytes to buffer before reporting a flow control error. */
        private val maxByteCount: Long,
        /**
         * True if either side has cleanly shut down this stream. We will receive no more bytes beyond
         * those already in the buffer.
         */
        internal var finished: Boolean,
      ) : Source {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/CacheTest.kt

          -1
    
          """.trimIndent()
        val entryBody = "abc"
        val journalBody = """libcore.io.DiskLruCache
    1
    201105
    2
    
    CLEAN $urlKey ${entryMetadata.length} ${entryBody.length}
    """
        fileSystem.createDirectory(cache.directoryPath)
        writeFile(cache.directoryPath, "$urlKey.0", entryMetadata)
    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)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          val source = raw.source().buffer()
          val sink = raw.sink().buffer()
          while (true) {
            val socketStillGood = processOneRequest(raw, source, sink)
    
            // Clean up after the last exchange on a socket.
            if (!socketStillGood) {
              raw.close()
              openClientSockets.remove(raw)
              return false
            }
    
    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)
Back to top