Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 443 for Connections (0.11 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          }
        }
        return null
      }
    
      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.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Connection.kt

     * avoiding these options entirely, this class allows a connection to be attempted with modern
     * options and then retried without them should the attempt fail.
     *
     * ## Connection Reuse
     *
     * Each connection can carry a varying number of streams, depending on the underlying protocol being
     * used. HTTP/1.x connections can carry either zero or one streams. HTTP/2 connections can carry any
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcConnectionMonitorTarget.java

     * idleConnectionTimeout the timeout duration (in milliseconds) for idle connections
     *
     * <p>Methods:</p>
     * <ul>
     *   <li>{@link #expired()}: Handles the expiration of connections by closing expired and idle connections.</li>
     * </ul>
     *
     * <p>Logging:</p>
     * <ul>
     *   <li>Logs a warning if the clientConnectionManager is null.</li>
     *   <li>Logs a warning if an exception occurs during connection monitoring.</li>
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            assertTrue(pool.contains(pooled), "Pooled connection should be tracked");
            assertFalse(pool.contains(nonPooled), "Non-pooled connection should not be tracked");
        }
    
        @Test
        @DisplayName("Should create new connections when reuse conditions are not met")
        void testNoConnectionReuse() throws Exception {
            // Given: Create a new pool for this test to ensure isolation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionPool.kt

    import okhttp3.internal.connection.ConnectionListener
    import okhttp3.internal.connection.FastFallbackExchangeFinder
    import okhttp3.internal.connection.ForceConnectRoutePlanner
    import okhttp3.internal.connection.RealConnectionPool
    import okhttp3.internal.connection.RealRoutePlanner
    import okhttp3.internal.connection.RouteDatabase
    
    /**
     * Manages reuse of HTTP and HTTP/2 connections for reduced network latency. HTTP requests that
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt

    import okhttp3.internal.indexOf
    import okhttp3.internal.intersect
    
    /**
     * Specifies configuration for the socket connection that HTTP traffic travels through. For `https:`
     * URLs, this includes the TLS version and cipher suites to use when negotiating a secure
     * connection.
     *
     * The TLS versions configured in a connection spec are only be used if they are also enabled in the
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt

        // which can satisfy a larger policy
        val connection = routePlanner.plans.first().connection
        val http2Connection = connectHttp2(peer, connection, 5)
        setPolicy(pool, address, AddressPolicy(5))
        assertThat(pool.connectionCount()).isEqualTo(1)
    
        // Decrease the connection's max so that another connection is needed
        updateMaxConcurrentStreams(http2Connection, 4)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

    import okhttp3.internal.isHealthy
    import okhttp3.internal.tls.OkHostnameVerifier
    import okio.Buffer
    
    /**
     * A connection to a remote web server capable of carrying 1 or more concurrent streams.
     *
     * Connections are shared in a connection pool. Accesses to the connection's state must be guarded
     * by holding a lock on the connection.
     */
    class RealConnection internal constructor(
      val taskRunner: TaskRunner,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            private final List<HttpURLConnection> connections = new ArrayList<>();
            private int currentIndex = 0;
    
            void addConnection(HttpURLConnection conn) {
                connections.add(conn);
            }
    
            @Override
            protected URLConnection openConnection(URL u) throws IOException {
                if (currentIndex < connections.size()) {
                    return connections.get(currentIndex++);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top