Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for useAsSocket (0.03 sec)

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

        }
      }
    
      @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 =
            RequestBodySink(
              delegate = codec.socket.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/RealConnection.kt

          okHttpSocket.sink.timeout().timeout(chain.writeTimeoutMillis.toLong(), MILLISECONDS)
          Http1ExchangeCodec(client, this, okHttpSocket)
        }
      }
    
      internal fun useAsSocket() {
        javaNetSocket.soTimeout = 0
        noNewExchanges()
      }
    
      override fun route(): Route = route
    
      override fun cancel() {
        // Close the raw socket so we don't end up doing synchronous I/O.
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:55:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
Back to top