Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 30 for connectionAcquired (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""connectStart: ${url.host}/.+ DIRECT"""))
          .assertLogMatch(Regex("""connectEnd: http/1.1"""))
          .assertLogMatch(
            Regex(
              """connectionAcquired: Connection\{${url.host}:\d+, proxy=DIRECT hostAddress=${url.host}/.+ cipherSuite=none protocol=http/1\.1\}""",
            ),
          ).assertLogMatch(Regex("""requestHeadersStart"""))
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

            Protocol protocol, IOException ioe) {
          printEvent("connectFailed");
        }
    
        @Override public void connectionAcquired(Call call, Connection connection) {
          printEvent("connectionAcquired");
        }
    
        @Override public void connectionReleased(Call call, Connection connection) {
          printEvent("connectionReleased");
        }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 5.3K bytes
    - Click Count (0)
  3. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

    import mockwebserver3.junit5.StartStop
    import okhttp3.CallEvent.CallEnd
    import okhttp3.CallEvent.CallStart
    import okhttp3.CallEvent.ConnectEnd
    import okhttp3.CallEvent.ConnectStart
    import okhttp3.CallEvent.ConnectionAcquired
    import okhttp3.CallEvent.ConnectionReleased
    import okhttp3.CallEvent.DnsEnd
    import okhttp3.CallEvent.DnsStart
    import okhttp3.CallEvent.FollowUpDecision
    import okhttp3.CallEvent.ProxySelectEnd
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val call: Call,
        val handshake: Handshake?,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is SecureConnectStart && call == event.call
      }
    
      data class ConnectionAcquired(
        override val timestampNs: Long,
        override val call: Call,
        val connection: Connection,
      ) : CallEvent()
    
      data class ConnectionReleased(
        override val timestampNs: Long,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Oct 06 13:40:20 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  5. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

                  .supportsTlsExtensions(false)
                  .build(),
              ),
            ).eventListener(
              object : EventListener() {
                override fun connectionAcquired(
                  call: Call,
                  connection: Connection,
                ) {
                  val sslSocket = connection.socket() as SSLSocket
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectionListener.kt

       * Invoked when a connection is released as no longer required.
       */
      open fun connectionClosed(connection: Connection) {}
    
      /**
       * Invoked when a call is assigned a particular connection.
       */
      open fun connectionAcquired(
        connection: Connection,
        call: Call,
      ) {}
    
      /**
       * Invoked when a call no longer uses a connection.
       */
      open fun connectionReleased(
        connection: Connection,
        call: Call,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri May 30 21:28:20 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/SocketFailureTest.kt

          .eventListener(listener)
          .build()
    
      class SocketClosingEventListener : EventListener() {
        var shouldClose: Boolean = false
        var lastSocket: Socket? = null
    
        override fun connectionAcquired(
          call: Call,
          connection: Connection,
        ) {
          lastSocket = connection.socket()
        }
    
        override fun requestHeadersStart(call: Call) {
          if (shouldClose) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Jul 29 21:11:09 GMT 2025
    - 3K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        connection.withLock {
          connectionPool.put(connection)
          call.acquireConnectionNoEvents(connection)
        }
    
        call.eventListener.connectionAcquired(call, connection)
        connection.connectionListener.connectionAcquired(connection, call)
        return connection
      }
    
      override fun trackFailure(
        call: RealCall,
        e: IOException?,
      ) {
        // Do nothing.
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 19.3K bytes
    - Click Count (2)
  9. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

          client
            .newBuilder()
            .connectionSpecs(listOf(spec))
            .eventListenerFactory(
              clientTestRule.wrap(
                object : EventListener() {
                  override fun connectionAcquired(
                    call: Call,
                    connection: Connection,
                  ) {
                    val sslSocket = connection.socket() as SSLSocket
    
                    sessionIds.add(
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 5.9K bytes
    - Click Count (1)
  10. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

    import mockwebserver3.junit5.StartStop
    import okhttp3.CallEvent.CallEnd
    import okhttp3.CallEvent.CallStart
    import okhttp3.CallEvent.ConnectEnd
    import okhttp3.CallEvent.ConnectStart
    import okhttp3.CallEvent.ConnectionAcquired
    import okhttp3.CallEvent.ConnectionReleased
    import okhttp3.CallEvent.DnsEnd
    import okhttp3.CallEvent.DnsStart
    import okhttp3.CallEvent.FollowUpDecision
    import okhttp3.CallEvent.ProxySelectEnd
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 25.8K bytes
    - Click Count (0)
Back to Top