Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AddressState (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

      private fun isEvictable(
        addressStates: Map<Address, AddressState>,
        connection: RealConnection,
      ): Boolean {
        val addressState = addressStates[connection.route.address] ?: return true
        val capacityWithoutIt = addressState.concurrentCallCapacity - connection.allocationLimit
        return capacityWithoutIt >= addressState.policy.minimumConcurrentCalls
      }
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top