- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for webSocketCloseTimeout (0.12 sec)
-
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
@get:JvmName("pingIntervalMillis") val pingIntervalMillis: Int = builder.pingInterval /** Web socket close timeout (in milliseconds). */ @get:JvmName("webSocketCloseTimeout") val webSocketCloseTimeout: Int = builder.webSocketCloseTimeout /** * Minimum outbound web socket message size (in bytes) that will be compressed. * The default is 1024 bytes. */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt
client.listener.assertFailure(IOException::class.java, "canceled") taskFaker.runTasks() } @Test fun clientCloseCancelsConnectionAfterCustomTimeout() { client.initWebSocket(random, webSocketCloseTimeout = 5_000) client.webSocket!!.close(1000, "Hello!") taskFaker.runTasks() // Note: we don't process server frames so our client 'close' doesn't receive a server 'close'.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 01:59:58 UTC 2024 - 18.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
*/ private var extensions: WebSocketExtensions?, /** If compression is negotiated, outbound messages of this size and larger will be compressed. */ private var minimumDeflateSize: Long, private val webSocketCloseTimeout: Long, ) : WebSocket, WebSocketReader.FrameCallback { private val key: String /** Non-null for client web sockets. These can be canceled. */ internal var call: Call? = null
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 22.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/OkHttpClientTest.kt
assertThat(client.readTimeoutMillis).isEqualTo(10000) assertThat(client.writeTimeoutMillis).isEqualTo(10000) assertThat(client.pingIntervalMillis).isEqualTo(0) assertThat(client.webSocketCloseTimeout).isEqualTo(60_000) } @Test fun webSocketDefaults() { val client = clientTestRule.newClient() assertThat(client.minWebSocketMessageToCompress).isEqualTo(1024) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 13.2K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun webSocketCloseTimeout (JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder; public final fun webSocketCloseTimeout (Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder; public final fun webSocketCloseTimeout-LRDsOJo (J)Lokhttp3/OkHttpClient$Builder;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
TaskRunner.INSTANCE, request, clientListener, random, client.pingIntervalMillis.toLong(), null, 0L, client.webSocketCloseTimeout.toLong(), ) webSocket.connect(client) return webSocket } private fun closeWebSockets( client: WebSocket, server: WebSocket, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
CHANGELOG.md
operators before adopting it. * New in okhttp-android: `HttpLoggingInterceptor.androidLogging()` and `LoggingEventListener.androidLogging()` write HTTP calls or events to Logcat. * New: `OkHttpClient.webSocketCloseTimeout` configures how long a web socket connection will wait for a graceful shutdown before it performs an abrupt shutdown. * Fix: Honor `RequestBody.isOneShot()` in `MultipartBody`
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:31:39 UTC 2024 - 21.4K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
pingIntervalMillis = 0, extensions = WebSocketExtensions.parse(webSocketResponse.headers), // Compress all messages if compression is enabled. minimumDeflateSize = 0L, webSocketCloseTimeout = RealWebSocket.CANCEL_AFTER_CLOSE_MILLIS, ) val name = "MockWebServer WebSocket ${request.path!!}" webSocket.initReaderAndWriter(name, streams) try { webSocket.loopReader(fancyResponse)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0)