Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for commit2 (0.45 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        val fileOperator = FileOperator(file!!.channel)
        fileOperator.write(FILE_HEADER_SIZE + upstreamSize, metadataBuffer, metadata.size.toLong())
      }
    
      @Throws(IOException::class)
      fun commit(upstreamSize: Long) {
        // 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.
    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)
  2. docs/releasing.md

          "s/\/com.squareup.okhttp3\/\([^\:]*\)\/[^\/]*\//\/com.squareup.okhttp3\/\1\/$RELEASE_VERSION\//g" \
          `find . -name "README.md"`
        ```
    
    4. Tag the release and push to GitHub.
    
        ```
        git commit -am "Prepare for release $RELEASE_VERSION."
        git tag -a parent-$RELEASE_VERSION -m "Version $RELEASE_VERSION"
        git push && git push --tags
        ```
    
    5. Wait for [GitHub Actions][github_actions] to start the publish job.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Dec 26 22:07:16 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

        var editor: DiskLruCache.Editor? = null
        try {
          editor = snapshot.edit() ?: return // edit() returns null if snapshot is not current.
          entry.writeTo(editor)
          editor.commit()
        } catch (_: IOException) {
          abortQuietly(editor)
        }
      }
    
      private fun abortQuietly(editor: DiskLruCache.Editor?) {
        // Give up because the cache cannot be written.
        try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat(verifier.verify("foo.com", session)).isTrue()
        assertThat(verifier.verify("bar.com", session)).isFalse()
      }
    
      @Test fun specialKInHostname() {
        // https://github.com/apache/httpcomponents-client/commit/303e435d7949652ea77a6c50df1c548682476b6e
        // https://www.gosecure.net/blog/2020/10/27/weakness-in-java-tls-host-verification/
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("Foo Corp")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

     * true for systems like Mac, Unix, and Linux that use inodes in their file system interface. It is
     * typically false on Windows.
     *
     * If this returns false we won't permit simultaneous reads and writes. When writes commit we need
     * to delete the previous snapshots, and that won't succeed if the file is open. (We do permit
     * multiple simultaneous reads.)
     *
     * @param file a file in the directory to check. This file shouldn't already exist!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

    _2016-01-14_
    
     *  Rollback OSGi support. This was causing library jars to include more classes
        than expected, which interfered with Gradle builds.
    
    
    ## Version 3.0.0
    
    _2016-01-13_
    
    This release commits to a stable 3.0 API. Read the 3.0.0-RC1 changes for advice
    on upgrading from 2.x to 3.x.
    
     *  **The `Callback` interface now takes a `Call`**. This makes it easier to
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        val k1Creator = cache.edit("k1")!!
        k1Creator.setString(0, "AB")
        k1Creator.setString(1, "C")
        k1Creator.commit()
        val k2Creator = cache.edit("k2")!!
        k2Creator.setString(0, "DEF")
        k2Creator.setString(1, "G")
        k2Creator.commit()
        val k1Snapshot = cache["k1"]!!
        k1Snapshot.close()
        cache.close()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_2x.md

     *  Fix: Honor `OkUrlFactory` APIs that disable redirects.
     *  Fix: Don't crash on concurrent modification of `SPDY` SPDY settings.
    
    ## Version 2.0.0
    
    This release commits to a stable 2.0 API. Read the 2.0.0-RC1 changes for advice
    on upgrading from 1.x to 2.x.
    
    _2014-06-21_
    
     *  **API Change**: Use `IOException` in `Callback.onFailure()`. This is
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

                detach()
              }
            }
          }
        }
    
        /**
         * Commits this edit so it is visible to readers. This releases the edit lock so another edit
         * may be started on the same key.
         */
        @Throws(IOException::class)
        fun commit() {
          synchronized(this@DiskLruCache) {
            check(!done)
            if (entry.currentEditor == this) {
    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)
Back to top