- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CloseSocket (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
@Test fun serverShutdownInput() { testServerClosesOutput( MockResponse .Builder() .body("This connection won't pool properly") .onResponseEnd( CloseSocket( closeSocket = false, shutdownInput = true, ), ).build(), ) } @Test fun serverShutdownOutput() { testServerClosesOutput( MockResponse
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
if (peek().onResponseStart is CloseSocket) { requestFinished.await() } return super.dispatch(request) } } dispatcher.enqueue(MockResponse(body = "seed connection pool")) dispatcher.enqueue(MockResponse.Builder().onResponseStart(CloseSocket()).build()) dispatcher.enqueue(MockResponse(body = "retry success"))
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 147.4K bytes - Viewed (0)