Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createConnectTlsNextPlan (0.15 sec)

  1. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

        fun createConnectTcpNextPlan(): FakePlan {
          check(connectTcpNextPlan == null)
          return FakePlan(nextPlanId++)
            .also {
              connectTcpNextPlan = it
            }
        }
    
        fun createConnectTlsNextPlan(): FakePlan {
          check(connectTlsNextPlan == null)
          return FakePlan(nextPlanId++)
            .also {
              connectTlsNextPlan = it
            }
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

          "plan 1 TLS connected",
        )
    
        taskFaker.assertNoMoreTasks()
      }
    
      @Test
      fun tlsConnectFollowUpPlanUsed() {
        val plan0 = routePlanner.addPlan()
        val plan1 = plan0.createConnectTlsNextPlan()
    
        taskRunner.newQueue().execute("connect") {
          val result0 = finder.find()
          assertThat(result0).isEqualTo(plan1.connection)
        }
    
        taskFaker.runTasks()
        assertEvents(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top