Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        }
      }
    
      @Throws(IOException::class)
      fun peekTrailers(): Headers? = codec.peekTrailers()
    
      fun upgradeToSocket(): Socket {
        call.timeoutEarlyExit()
        (codec.carrier as RealConnection).useAsSocket()
    
        eventListener.requestBodyStart(call)
    
        return object : Socket {
          override fun cancel() {
            ******@****.***()
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.7K 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 14.9K bytes
    - Viewed (0)
Back to top