Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for upgradeToSocket (0.05 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

          trackFailure(e)
          throw e
        }
      }
    
      @Throws(IOException::class)
      fun peekTrailers(): Headers? = codec.peekTrailers()
    
      fun upgradeToSocket(): Socket {
        call.upgradeToSocket()
        (codec.carrier as RealConnection).useAsSocket()
    
        return object : Socket {
          override fun cancel() {
            ******@****.***()
          }
    
          override val sink =
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

       * and duplex calls where the timeout only applies to the initial setup.
       */
      fun timeoutEarlyExit() {
        check(!timeoutEarlyExit)
        timeoutEarlyExit = true
        timeout.exit()
      }
    
      fun upgradeToSocket() {
        timeoutEarlyExit()
    
        withLock {
          check(exchange != null)
          check(!socketSinkOpen && !socketSourceOpen)
          check(!requestBodyOpen)
          check(responseBodyOpen)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top