Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for scheduleCloser (0.38 sec)

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

        when {
          newConnectionsNeeded > 0 -> state.scheduleOpener()
          newConnectionsNeeded < 0 -> scheduleCloser()
        }
      }
    
      /** Open connections to [address], if required by the address policy. */
      fun scheduleOpener(address: Address) {
        addressStates[address]?.scheduleOpener()
      }
    
      fun scheduleCloser() {
        cleanupQueue.schedule(cleanupTask)
      }
    
      /**
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

            connectionPool.scheduleOpener(route.address)
          } else if (allocationLimit > oldLimit) {
            // We might no longer need some connections
            connectionPool.scheduleCloser()
          }
        }
      }
    
      override fun handshake(): Handshake? = handshake
    
      /** Track a bad route in the route database. Other routes will be attempted first. */
      internal fun connectFailed(
    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