Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for trigger (0.2 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

        val parentFile = parentFile ?: return false
        if (parentFile == directory) return true
        return parentFile.isDescendentOf(directory)
      }
    
      /**
       * See FinalizationTester for discussion on how to best trigger GC in tests.
       * https://android.googlesource.com/platform/libcore/+/master/support/src/test/java/libcore/
       * java/lang/ref/FinalizationTester.java
       */
      @Throws(Exception::class)
      @JvmStatic
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

     *  Fix: Use literal IP addresses directly rather than passing them to `DnsOverHttps`.
     *  Fix: Embed Proguard rules to prevent warnings from tools like DexGuard and R8. These warnings
        were triggered by OkHttp’s feature detection for TLS packages like `org.conscrypt`,
        `org.bouncycastle`, and `org.openjsse`.
     *  Upgrade: Explicitly depend on `kotlin-stdlib-jdk8`. This fixes a problem with dependency
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        taskFaker.runTasks()
        server.webSocket!!.tearDown()
        client.webSocket!!.tearDown()
        taskFaker.close()
      }
    
      @Test
      fun close() {
        client.webSocket!!.close(1000, "Hello!")
        // This will trigger a close response.
        assertThat(server.processNextFrame()).isFalse()
        server.listener.assertClosing(1000, "Hello!")
        server.webSocket!!.finishReader()
        server.webSocket!!.close(1000, "Goodbye!")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

            connection.idleAtNs = now - keepAliveDurationNs
            return 0
          }
        }
    
        return references.size
      }
    
      /**
       * Adds or replaces the policy for [address].
       * This will trigger a background task to start creating connections as needed.
       */
      fun setPolicy(
        address: Address,
        policy: ConnectionPool.AddressPolicy,
      ) {
    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)
  5. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

                override fun intercept(chain: Interceptor.Chain): Response {
                  if (!executedCall) {
                    // At this point, we have a healthy HTTP/2 connection. This call will trigger the
                    // server to send a GOAWAY frame, leaving the connection in a shutdown state.
                    executedCall = true
                    val call =
                      client.newCall(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        }
    
        // Cause the rebuild action to fail.
        filesystem.setFaultyRename(
          cacheDir / DiskLruCache.JOURNAL_FILE_BACKUP,
          true,
        )
        taskFaker.runNextTask()
    
        // Trigger a job to trim the cache.
        cache.maxSize = 4
        taskFaker.runNextTask()
        assertAbsent("a")
        assertValue("b", "bb", "bb")
      }
    
      @ParameterizedTest
    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)
  7. .github/workflows/build.yml

            run: |
              echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
              sudo udevadm control --reload-rules
              sudo udevadm trigger --name-match=kvm
    
          - name: Setup Gradle
            uses: gradle/actions/setup-gradle@v3
    
          - name: Gradle cache
            run: ./gradlew -PandroidBuild=true :okhttp-android:test
    
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 01:51:50 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  8. settings.gradle.kts

      include(":okhttp-android")
      include(":android-test")
      include(":android-test-app")
    }
    
    enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
    
    /**
     * Avoid a crash in IntelliJ triggered by Android submodules.
     *
     * ```
     * java.lang.AssertionError: Can't find built-in class kotlin.Cloneable
     *   at org.jetbrains.kotlin.builtins.KotlinBuiltIns.getBuiltInClassByFqName(KotlinBuiltIns.java:217)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

     *
     * Many methods in this API are **synchronous:** the call is completed before the method returns.
     * This is typical for Java but atypical for HTTP/2. This is motivated by exception transparency:
     * an [IOException] that was triggered by a certain caller can be caught and handled by that caller.
     */
    @Suppress("NAME_SHADOWING")
    class Http2Connection internal constructor(builder: Builder) : Closeable {
      internal val lock: ReentrantLock = ReentrantLock()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  10. CHANGELOG.md

        module in 2018. We are confident in its stable API and solid implementation.
     *  Fix: Work around a crash in Android 10 and 11 that may be triggered when two threads
        concurrently close an SSL socket. This would have appeared in crash logs as
        `NullPointerException: bio == null`.
     *  Fix: Use plus `+` instead of `%20` to encode space characters in `FormBody`. This was a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top