Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 740 for _close (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

            @Throws(IOException::class)
            override fun close() {
              if (!cacheRequestClosed &&
                !discard(ExchangeCodec.DISCARD_STREAM_TIMEOUT_MILLIS, MILLISECONDS)
              ) {
                cacheRequestClosed = true
                cacheRequest.abort()
              }
              source.close()
            }
          }
    
        val contentType = response.header("Content-Type")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbResourceTest.java

        class ResourceManagementTests {
    
            @Test
            @DisplayName("close operation should work correctly")
            void testClose() {
                // When/Then
                assertDoesNotThrow(() -> mockResource.close(), "Close operation should not throw exception");
                verify(mockResource).close();
            }
    
            @Test
            @DisplayName("resource should be AutoCloseable")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

        }
    
        @Override
        public File getFile() {
            done = true;
            return super.getFile();
        }
    
        @Override
        public void close() throws IOException {
            try {
                super.close();
            } finally {
                if (!isInMemory() && !done) {
                    final File file = super.getFile();
                    if (file != null) {
                        try {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

            }
        }
    
        /**
         * Close the tree connection (implements AutoCloseable)
         *
         * This method provides a standard way to close resources using try-with-resources.
         * It delegates to the release() method to properly clean up the connection.
         */
        @Override
        public void close() {
            if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

      public open fun enqueue(response: MockResponse) {
        responseQueue.add(response)
      }
    
      public open fun clear() {
        responseQueue.clear()
      }
    
      public override fun close() {
        responseQueue.add(DEAD_LETTER)
      }
    
      public open fun setFailFast(failFast: Boolean) {
        setFailFast(
          failFastResponse =
            when {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 14 16:09:26 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SecureKeyManagerTest.java

        @Test
        public void testUseAfterClose() {
            keyManager.close();
            assertThrows(IllegalStateException.class, () -> keyManager.storeSessionKey("session", testKey, "AES"));
        }
    
        @Test
        public void testMultipleCloseCalls() {
            keyManager.storeSessionKey("session", testKey, "AES");
    
            keyManager.close();
            keyManager.close(); // Should not throw
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/curl/CurlResponse.java

         */
        private Map<String, List<String>> headers;
    
        /**
         * Closes the content cache if it is not null.
         *
         * @throws IOException if an I/O error occurs.
         */
        @Override
        public void close() throws IOException {
            if (contentCache != null) {
                contentCache.close();
            }
        }
    
        /**
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_3x.md

     *  Fix: Improve recovery from failed routes.
     *  Fix: Accommodate tunneling proxies that close the connection after an auth
        challenge.
     *  Fix: Use the proxy authenticator when authenticating HTTP proxies. This
        regression was introduced in OkHttp 3.0.
     *  Fix: Fail fast if network interceptors transform the response body such that
        closing it doesn't also close the underlying stream. We had a bug where
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  9. mockwebserver/api/mockwebserver3.api

    	public final fun clearHeaders ()Lmockwebserver3/MockResponse$Builder;
    	public synthetic fun clone ()Ljava/lang/Object;
    	public fun clone ()Lmockwebserver3/MockResponse$Builder;
    	public final fun code (I)Lmockwebserver3/MockResponse$Builder;
    	public final fun doNotReadRequestBody ()Lmockwebserver3/MockResponse$Builder;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/disni/DisniRdmaConnection.java

        }
    
        @Override
        public void close() throws IOException {
            state = RdmaConnectionState.CLOSING;
    
            try {
                // In real implementation, this would close the DiSNI endpoint:
                // if (endpoint != null) {
                //     endpoint.close();
                // }
            } finally {
                state = RdmaConnectionState.CLOSED;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top