Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shouldClose (0.04 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/SocketFailureTest.kt

      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) {
            lastSocket!!.close()
          }
        }
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top