- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 559 for sockets (0.35 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
* this address. * * If [planToReplace] is non-null, this will swap it for a pooled connection if that pooled * connection uses HTTP/2. That results in fewer sockets overall and thus fewer TCP slow starts. */ internal fun planReusePooledConnection( planToReplace: ConnectPlan? = null, routes: List<Route>? = null, ): ReusePlan? { val result =
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Oct 08 03:50:05 GMT 2025 - 12K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// When: Request another connection // Note: Real SmbTransportImpl will report as disconnected without actual socket SmbTransportImpl second = testPool.getSmbTransport(ctx, address, 445, false); // Then: Will create new connection since real transport has no socket assertNotSame(first, second, "Should create new connection when first is disconnected"); } @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 19.2K bytes - Click Count (0) -
docs/changelogs/changelog_4x.md
compressing outbound web socket messages. Configure this with 0L to always compress outbound messages and `Long.MAX_VALUE` to never compress outbound messages. The default is 1024L which compresses messages of size 1 KiB and larger. (Inbound messages are compressed or not based on the web socket server's configuration.)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
@Test @DisplayName("isDisconnected / isFailed reflect socket and state") void connectionStateChecks() throws Exception { // Arrange: simulate connected state and open socket setField(transport, "state", 3); // connected Socket s = mock(Socket.class); when(s.isClosed()).thenReturn(false); setField(transport, "socket", s); // Act & AssertCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
} } val result = timeoutExit(e) if (e != null) { eventListener.callFailed(this, result!!) } else { eventListener.callEnd(this) } return result } /** * Remove this call from the connection's list of allocations. Returns a socket that the caller * should close. */Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 19.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt
private var writer: WebSocketWriter? = null /** Used for writes, pings, and close timeouts. */ private var taskQueue = taskRunner.newQueue() /** Names this web socket for observability and debugging. */ private var name: String? = null /** The socket that carries this web socket. This is canceled when the web socket fails. */ private var socket: Socket? = null
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 21.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
} /** * Sets the socket factory used to create connections. OkHttp only uses the parameterless * [SocketFactory.createSocket] method to create unconnected sockets. Overriding this method, * e. g., allows the socket to be bound to a specific local address. * * If unset, the [system-wide default][SocketFactory.getDefault] socket factory will be used. */Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 51.4K bytes - Click Count (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
socket.sink.writeUtf8(response.status) socket.sink.writeUtf8("\r\n") writeHeaders(socket.sink, response.headers) if (response.socketHandler != null) { response.socketHandler.handle(socket) return } val body = response.body ?: return socket.sleepWhileOpen(response.bodyDelayNanos) val responseBodySink = socket.sink
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 02 20:36:00 GMT 2025 - 40.3K bytes - Click Count (0) -
docs/changelogs/changelog_2x.md
when explicitly forbidden. * Fix: Throw a `SSLPeerUnverifiedException` when host verification fails. * Fix: MockWebServer explicitly closes sockets. (On some Android releases, closing the input stream and output stream of a socket is not sufficient. * Fix: Buffer outgoing HTTP/2 frames to limit how many outgoing frames are created. * Fix: Avoid crashing when cache writing fails due to a full disk.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 26.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
.socketFactory( object : DelegatingSocketFactory(getDefault()) { override fun configureSocket(socket: Socket): Socket { socket.receiveBufferSize = socketBufferSize socket.sendBufferSize = socketBufferSize return socket } }, ).writeTimeout(Duration.ofMillis(500)) .build() server.start()
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)