Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 904 for _close (0.07 sec)

  1. src/test/java/jcifs/SmbTreeTest.java

         */
        @Test
        void testClose_multipleTimes() {
            doNothing().when(smbTree).close();
    
            smbTree.close();
            smbTree.close();
            smbTree.close();
    
            verify(smbTree, times(3)).close();
        }
    
        /**
         * Test for close() method throwing exception.
         * Verifies behavior when close throws an exception.
         */
        @Test
        void testClose_throwsException() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

                rsp = new SmbComWriteResponse();
            }
        }
    
        /**
         * Closes this output stream and releases any system resources associated
         * with it.
         *
         * @throws IOException if a network error occurs
         */
    
        @Override
        public void close() throws IOException {
            file.close();
            tmp = null;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       * response body is empty this is invoked immediately before returning that to the application.
       *
       * If the application closes the response body before attempting a read, this is invoked at the
       * time it is closed.
       *
       * The connection is implicit, and will generally relate to the last [connectionAcquired] event.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        val source = stream.source
        val out = stream.sink.buffer()
        source.close()
        assertFailsWith<IOException> {
          source.read(Buffer(), 1)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream closed")
        }
        out.writeUtf8("square")
        out.flush()
        out.close()
        assertThat(connection.openStreamCount()).isEqualTo(0)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

      @Test
      fun closeWithoutStart() {
        val server = MockWebServer()
        server.close()
      }
    
      @Test
      fun closeViaClosable() {
        val server: Closeable = MockWebServer()
        server.close()
      }
    
      @Test
      fun closeWithoutEnqueue() {
        val server = MockWebServer()
        server.start()
        server.close()
      }
    
      @Test
      fun portValidAfterStart() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  6. docs/smb3-features/02-persistent-handles-design.md

            throw new IOException("Failed to reconnect durable handle");
        }
    }
    
    @Override
    public void close() throws IOException {
        try {
            // Normal close operations
            super.close();
        } finally {
            // Don't release durable handle on close if it's persistent
            if (handleManager != null && handleType != HandleType.PERSISTENT) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NetServerEnumIteratorTest.java

                return invocation.getArgument(1);
            });
    
            // When: Create iterator and close multiple times
            NetServerEnumIterator iterator = new NetServerEnumIterator(parent, treeHandle, "*", 0, null);
    
            iterator.close();
            iterator.close(); // Second close should be safe
    
            // Then: Tree handle should be released only once
            verify(treeHandle, times(1)).release();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbWatchHandleTest.java

                executor.shutdown();
            }
        }
    
        /**
         * Test close() method
         */
        @Test
        void testClose() throws CIFSException {
            // Execute
            watchHandle.close();
    
            // Verify close was called
            verify(watchHandle, times(1)).close();
        }
    
        /**
         * Test close() method throwing CIFSException
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  9. CHANGELOG.md

        of unacknowledged data per stream and no per-connection limit.
    
     *  Fix: Don't close a `Deflater` while we're still using it to compress a web socket message. We
        had a severe bug where web sockets were closed on the wrong thread, which caused
        `NullPointerException` crashes in `Deflater`.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
  10. src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java

                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarClose.class));
    
            // Close once
            handle.close();
    
            // Act
            // Try to close again
            handle.close();
    
            // Assert
            // Verify sendrecv was called once for open and only once for close
            verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top