Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isStale (1.3 sec)

  1. src/test/java/jcifs/SmbPipeHandleTest.java

            /**
             * Verifies that isStale returns false for a fresh handle.
             */
            @Test
            public void testIsStale_ReturnsFalseWhenNotStale() {
                when(smbPipeHandle.isStale()).thenReturn(false);
                assertFalse(smbPipeHandle.isStale(), "isStale() should return false for a fresh handle.");
            }
    
            /**
             * Verifies that isStale returns true for a stale handle.
             */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbPipeHandle.java

        boolean isOpen();
    
        /**
         * Tests whether this file descriptor was previously open but has become invalid.
         *
         * @return whether the FD was previously open but became invalid
         */
        boolean isStale();
    
        /**
         * Unwraps this handle to the specified type.
         *
         * @param <T> the type to unwrap to
         * @param type the class of the type to unwrap to
         * @return unwrapped instance
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

         */
        @Override
        protected int doSendReceiveFragment(final byte[] buf, final int off, final int length, final byte[] inB) throws IOException {
            if (this.handle.isStale()) {
                throw new IOException("DCERPC pipe is no longer open");
            }
    
            int have = this.handle.sendrecv(buf, off, length, inB, getMaxRecv());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top