- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 822 for connecting (0.06 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
// This request will share a connection with 'A' cause it's all done. client.newCall(Request.Builder().url(server.url("/b")).build()).enqueue(callback) } }, ) callback.await(server.url("/b")).assertCode(200).assertBody("def") // New connection. assertThat(server.takeRequest().exchangeIndex).isEqualTo(0) // Connection reuse!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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
} fun put(connection: RealConnection) { connection.assertLockHeld() connections.add(connection) // connection.queueEvent { connectionListener.connectEnd(connection) } scheduleCloser() } /** * Notify this pool that [connection] has become idle. Returns true if the connection has been * removed from the pool and should be closed. */
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Oct 08 03:50:05 GMT 2025 - 11.1K bytes - Click Count (0) -
src/test/java/jcifs/http/HandlerTest.java
URLConnection connection1 = handler.openConnection(url1); URLConnection connection2 = handler.openConnection(url2); assertNotNull(connection1, "First connection should not be null."); assertNotNull(connection2, "Second connection should not be null."); assertTrue(connection1 instanceof NtlmHttpURLConnection, "First connection should be wrapped.");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectionListener.kt
connection: Connection, route: Route, call: Call, ) {} /** * Invoked when a connection is released as no longer required. */ open fun connectionClosed(connection: Connection) {} /** * Invoked when a call is assigned a particular connection. */ open fun connectionAcquired( connection: Connection, call: Call, ) {} /**Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri May 30 21:28:20 GMT 2025 - 2.2K bytes - Click Count (0) -
docs/changelogs/changelog_4x.md
HTTP/2 to 16 MiB of unacknowledged data per connection. With this fix there is a limit of 16 MiB of unacknowledged data per stream and no per-connection limit. * Fix: Don't operate on a connection after it's been returned to the pool. This race occurred on failed web socket connection attempts. * Upgrade: [Okio 3.6.0][okio_3_6_0]. * Upgrade: [Kotlin 1.8.21][kotlin_1_8_21].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) -
docs/features/events.md
.url("https://publicobject.com/helloworld.txt") .build(); System.out.println("REQUEST 1 (new connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body. response.body().source().readByteString(); } System.out.println("REQUEST 2 (pooled connection)"); try (Response response = client.newCall(request).execute()) { // Consume and discard the response body.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 7.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
call: Call, connection: Connection, ) { for (delegate in eventListeners) { delegate.connectionAcquired(call, connection) } } override fun connectionReleased( call: Call, connection: Connection, ) { for (delegate in eventListeners) { delegate.connectionReleased(call, connection) } }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 21:03:04 GMT 2025 - 24.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
int currentSize = this.connections.size(); if (currentSize >= maxPoolSize) { // Try to remove idle connections removeIdleConnections(); // If still at limit, throw exception if (this.connections.size() >= maxPoolSize) { throw new IllegalStateException("Connection pool has reached maximum size of " + maxPoolSize
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 33.4K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcConnectionMonitorTarget.java
/** * HcConnectionMonitorTarget is responsible for monitoring and managing HTTP client connections. * It implements the TimeoutTarget interface to handle connection expiration events. * * <p>This class uses an instance of HttpClientConnectionManager to manage the connections. * It closes expired connections and idle connections that have exceeded a specified timeout. * </p> *
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 3.3K bytes - Click Count (0) -
docs/contribute/concurrency.md
* **ExchangeFinder** chooses which connection carries each exchange. Where possible it will use the same connection for all exchanges in a single call. It prefers reusing pooled connections over establishing new connections. #### Per-Connection Locks
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 16:35:36 GMT 2022 - 7K bytes - Click Count (0)