Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for SocketTimeoutException (0.08 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        }.also { expected ->
          when (expected) {
            is SocketTimeoutException, is SSLException -> {}
    
            else -> {
              throw expected
            }
          }
        }
    
        // The second call times out because it uses the same bad connection.
        val call2 = client.newCall(Request(server.url("/")))
        assertFailsWith<SocketTimeoutException> {
          call2.execute()
        }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
Back to Top