Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 486 for connection (0.06 sec)

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

        if (pooled3 != null) return pooled3.connection
    
        connection.withLock {
          connectionPool.put(connection)
          user.acquireConnectionNoEvents(connection)
        }
    
        user.connectionAcquired(connection)
        user.connectionConnectionAcquired(connection)
        return connection
      }
    
      override fun trackFailure(
        call: RealCall,
        e: IOException?,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  2. 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)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

       * - Both request discover no existing connection. They both make a connection.
       * - The first request "wins the race".
       * - The second request discovers it "lost the race" and closes the connection it just opened.
       * - The second request uses the coalesced connection from request1.
       * - The coalesced connection is violently closed after servicing the first request.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  4. 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.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

        assertLockNotHeld()
    
        val connection = this.connection
        if (connection != null) {
          connection.assertLockNotHeld()
          val toClose: Socket? =
            connection.withLock {
              // Sets this.connection to null.
              releaseConnectionNoEvents()
            }
          if (this.connection == null) {
            toClose?.closeQuietly()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            throw new TransportException("All connection attempts failed");
        }
    
        /**
         * Checks if the specified transport is contained in the connection pool
         * @param trans the transport to check for
         * @return whether (non-exclusive) connection is in the pool
         */
        public boolean contains(final SmbTransport trans) {
            cleanup();
            return this.connections.contains(trans);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

        }
    
        /**
         * Creates a new NTLM HTTP URL connection that wraps an existing HTTP connection.
         *
         * @param connection the HTTP connection to wrap for NTLM authentication
         */
        public NtlmHttpURLConnection(final HttpURLConnection connection) {
            super(connection.getURL());
            this.connection = connection;
            requestProperties = new HashMap();
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Create an existing connection
            SmbTransportImpl first = testPool.getSmbTransport(ctx, address, 445, false);
    
            // 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        /**
         * Creates a new NTLM HTTP URL connection that wraps an existing HTTP connection.
         *
         * @param connection
         *            connection to wrap
         * @param tc
         *            context to use
         */
        public NtlmHttpURLConnection(final HttpURLConnection connection, final CIFSContext tc) {
            super(connection.getURL());
            this.connection = connection;
            this.transportContext = tc;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top