Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ConnectionListener (0.13 sec)

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

            toClose.closeQuietly()
            connectionListener.connectionClosed(connection)
          } else if (noNewExchangesEvent) {
            connectionListener.noNewExchanges(connection)
          }
        }
        return null
      }
    
      fun put(connection: RealConnection) {
        connection.assertLockHeld()
    
        connections.add(connection)
    //    connection.queueEvent { connectionListener.connectEnd(connection) }
        scheduleCloser()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

              buildConnectionPool(
                connectionListener = connectionListener,
                taskRunner = taskRunner,
              ),
            ).dispatcher(Dispatcher(backend.executor))
            .taskRunnerInternal(taskRunner)
        } else {
          OkHttpClient
            .Builder()
            .connectionPool(ConnectionPool(connectionListener = connectionListener))
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

            }
          if (this.connection == null) {
            toClose?.closeQuietly()
            eventListener.connectionReleased(this, connection)
            connection.connectionListener.connectionReleased(connection, this)
            if (toClose != null) {
              connection.connectionListener.connectionClosed(connection)
            }
          } else {
            check(toClose == null) // If we still have a connection we shouldn't be closing any sockets.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

      private val javaNetSocket: JavaNetSocket,
      private val handshake: Handshake?,
      private val protocol: Protocol,
      private val socket: BufferedSocket,
      private val pingIntervalMillis: Int,
      internal val connectionListener: ConnectionListener,
    ) : Http2Connection.Listener(),
      Connection,
      ExchangeCodec.Carrier,
      Lockable {
      private var http2Connection: Http2Connection? = null
    
      // These properties are guarded by `this`.
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

              javaNetSocket = javaNetSocket!!,
              handshake = handshake,
              protocol = protocol!!,
              socket = socket,
              pingIntervalMillis = pingIntervalMillis,
              connectionListener = connectionPool.connectionListener,
            )
          this.connection = connection
          connection.start()
    
          // Success.
          user.callConnectEnd(route, protocol)
          success = true
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

      open val fastFallback: Boolean get() = true
    
      private var client: OkHttpClient =
        clientTestRule
          .newClientBuilder()
          .connectionPool(ConnectionPool(connectionListener = listener))
          .fastFallback(fastFallback)
          .build()
    
      @BeforeEach
      fun setUp() {
        platform.assumeNotOpenJSSE()
        platform.assumeNotBouncyCastle()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt

      ): RouteSelector =
        RouteSelector(
          address = address,
          routeDatabase = routeDatabase,
          fastFallback = fastFallback,
          connectionUser = CallConnectionUser(call, ConnectionListener.NONE, newChain(call)),
        )
    
      private fun newChain(call: RealCall): RealInterceptorChain =
        RealInterceptorChain(
          call = call,
          interceptors = listOf(),
          index = 0,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. CHANGELOG.md

        that this function is sensitive to when it is called: the response body must be supplied before
        it can be compressed.
    
     *  Breaking: Remove `AddressPolicy`, `AsyncDns`, and `ConnectionListener` from the public API. We
        intend to ship a public API for these features, but we don't want to hold OkHttp 5.0.0 until
        those APIs are stable.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (2)
Back to top