Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newTestConnection (0.2 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

        pool: RealConnectionPool,
        route: Route,
        idleAtNanos: Long = Long.MAX_VALUE,
        taskRunner: TaskRunner = this.taskRunner,
      ): RealConnection {
        val result =
          RealConnection.newTestConnection(
            taskRunner = taskRunner,
            connectionPool = pool,
            route = route,
            socket = Socket(),
            idleAtNs = idleAtNanos,
          )
        result.withLock { pool.put(result) }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

          " cipherSuite=${handshake?.cipherSuite ?: "none"}" +
          " protocol=$protocol}"
      }
    
      companion object {
        const val IDLE_CONNECTION_HEALTHY_NS = 10_000_000_000 // 10 seconds.
    
        fun newTestConnection(
          taskRunner: TaskRunner,
          connectionPool: RealConnectionPool,
          route: Route,
          socket: Socket,
          idleAtNs: Long,
        ): RealConnection {
          val result =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
Back to top