- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for readTimeouts (0.1 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
), ) assertThat(response.code).isEqualTo(200) assertContent("Body", response) response.close() assertThat(server.requestCount).isEqualTo(2) } @Test fun readTimeouts() { // This relies on the fact that MockWebServer doesn't close the // connection after a response has been sent. This causes the client to // try to read more bytes than are sent, which results in a timeout.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jun 21 20:36:35 GMT 2025 - 133.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
// First request: time out after 1s. client = client .newBuilder() .readTimeout(Duration.ofSeconds(1)) .build() executeSynchronously("/a").assertBody("abc") // Second request: time out after 250ms. client = client .newBuilder() .readTimeout(Duration.ofMillis(250)) .build()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 147.4K bytes - Click Count (0)