Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tcpConnectionsRaceAfterTlsFails (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

       *
       * This test confirms that we prefer to do the TLS follow-up (plan2) before the TCP retry (plan3).
       * It also confirms we enforce the 250 ms delay in each race.
       */
      @Test
      fun tcpConnectionsRaceAfterTlsFails() {
        val plan0 = routePlanner.addPlan()
        plan0.tcpConnectDelayNanos = 280.ms
    
        val plan1 = routePlanner.addPlan()
        plan1.tcpConnectDelayNanos = 10.ms // Connect at time = 260 ms.
    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