Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for acquireConnectionNoEvents (0.31 sec)

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

      }
    
      override fun connectionAcquired(connection: Connection) {
        eventListener.connectionAcquired(call, connection)
      }
    
      override fun acquireConnectionNoEvents(connection: RealConnection) {
        call.acquireConnectionNoEvents(connection)
      }
    
      override fun releaseConnectionNoEvents(): Socket? {
        return call.releaseConnectionNoEvents()
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectionUser.kt

        route: Route,
      )
    
      fun connectFailed(
        route: Route,
        protocol: Protocol?,
        e: IOException,
      )
    
      fun connectionAcquired(connection: Connection)
    
      fun acquireConnectionNoEvents(connection: RealConnection)
    
      fun releaseConnectionNoEvents(): Socket?
    
      fun connectionReleased(connection: Connection)
    
      fun connectionConnectionAcquired(connection: RealConnection)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/PoolConnectionUser.kt

      }
    
      override fun connectFailed(
        route: Route,
        protocol: Protocol?,
        e: IOException,
      ) {
      }
    
      override fun connectionAcquired(connection: Connection) {
      }
    
      override fun acquireConnectionNoEvents(connection: RealConnection) {
      }
    
      override fun releaseConnectionNoEvents(): Socket? {
        return null
      }
    
      override fun connectionReleased(connection: Connection) {
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

            .build()
        val call = client.newCall(Request(addressA.url)) as RealCall
        call.enterNetworkInterceptorExchange(call.request(), true, factory.newChain(call))
        c1.withLock { call.acquireConnectionNoEvents(c1) }
    
        // Running at time 50, the pool returns that nothing can be evicted until time 150.
        assertThat(pool.closeConnections(50L)).isEqualTo(100L)
        assertThat(pool.connectionCount()).isEqualTo(1)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        this.withLock {
          this.requestBodyOpen = true
          this.responseBodyOpen = true
        }
    
        if (canceled) throw IOException("Canceled")
        return result
      }
    
      fun acquireConnectionNoEvents(connection: RealConnection) {
        connection.lock.assertHeld()
    
        check(this.connection == null)
        this.connection = connection
        connection.calls.add(CallReference(this, callStackTrace))
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        val pooled3 = routePlanner.planReusePooledConnection(this, routes)
        if (pooled3 != null) return pooled3.connection
    
        connection.withLock {
          connectionPool.put(connection)
          user.acquireConnectionNoEvents(connection)
        }
    
        user.connectionAcquired(connection)
        user.connectionConnectionAcquired(connection)
        return connection
      }
    
      override fun trackFailure(
        call: RealCall,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

              when {
                requireMultiplexed && !connection.isMultiplexed -> false
                !connection.isEligible(address, routes) -> false
                else -> {
                  connectionUser.acquireConnectionNoEvents(connection)
                  true
                }
              }
            }
          if (!acquired) continue
    
          // Confirm the connection is healthy and return it.
    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)
  8. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/connection/RealCall$timeout$1;-><init>(Lokhttp3/internal/connection/RealCall;)V
    HSPLokhttp3/internal/connection/RealCall;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V
    HSPLokhttp3/internal/connection/RealCall;->acquireConnectionNoEvents(Lokhttp3/internal/connection/RealConnection;)V
    HSPLokhttp3/internal/connection/RealCall;->callDone(Ljava/io/IOException;)Ljava/io/IOException;
    HSPLokhttp3/internal/connection/RealCall;->enqueue(Lokhttp3/Callback;)V
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top