Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,120 for lost (0.02 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L);
            entry.markComplete();
    
            // Break lease with loss of read cache
            int newState = Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING; // Lost read cache
            directoryLeaseManager.handleDirectoryLeaseBreak(leaseKey, newState);
    
            // Cache should be invalidated
            assertFalse(entry.isComplete());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/CloseableUtil.java

        /**
         * Closes a {@link Closeable}.
         * <p>
         * If an exception is thrown by {@link Closeable#close()}, an error message is logged. The exception is not rethrown. This prevents the original exception from being lost in situations like the following:
         * </p>
         * <pre>
         * InputStream is = ...;
         * try {
         *   is.read(...);
         * } finally {
         *   close(is);
         * }
         * </pre>
         * <p>
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. docs/smb3-features/04-directory-leasing-design.md

        
        public List<SmbFile> batchExists(List<String> paths) {
            // Group paths by parent directory
            Map<String, List<String>> pathsByParent = paths.stream()
                .collect(Collectors.groupingBy(this::getParentPath));
            
            List<SmbFile> results = new ArrayList<>();
            
            for (Map.Entry<String, List<String>> entry : pathsByParent.entrySet()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

         *
         * @param directoryPath directory path
         * @return list of cached files or null
         */
        public List<SmbFile> getCachedDirectoryListing(String directoryPath) {
            DirectoryCacheEntry entry = getCacheEntry(directoryPath);
            if (entry == null || !entry.isComplete()) {
                return null;
            }
    
            List<SmbFile> files = new ArrayList<>();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            ChannelInfo channel = new ChannelInfo("failover-test", mockTransport, nic, nic);
            channel.setState(ChannelState.ESTABLISHED);
    
            // Simulate failure
            IOException failure = new IOException("Connection lost");
            failover.handleFailure(channel, failure);
    
            // Verify channel state changed
            assertFalse(channel.isHealthy());
            assertEquals(ChannelState.FAILED, channel.getState());
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            byte[] buffer = new byte[8];
            long time = System.currentTimeMillis();
            ServerMessageBlock.writeTime(time, buffer, 0);
            long readTime = ServerMessageBlock.readTime(buffer, 0);
            // Precision may be lost, so check within a second
            assertTrue(Math.abs(time - readTime) < 1000);
        }
    
        @Test
        void testTimeReadWriteZero() {
            byte[] buffer = new byte[8];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. docs/smb3-features/02-persistent-handles-design.md

                }
            };
        }
    }
    ```
    
    ### 10.2 Batch Handle Operations
    ```java
    public class BatchHandleOperations {
        public void reconnectMultipleHandles(List<HandleInfo> handles) {
            List<CompletableFuture<Void>> futures = new ArrayList<>();
            
            for (HandleInfo handle : handles) {
                futures.add(CompletableFuture.runAsync(() -> {
                    try {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

        void testErrorCategories() {
            // Network error
            exception = new SmbOperationException(SmbOperationException.ErrorCode.CONNECTION_RESET, "Connection lost");
            assertTrue(exception.isNetworkError());
            assertFalse(exception.isAuthenticationError());
            assertFalse(exception.isFileSystemError());
            assertFalse(exception.isTransientError());
    
            // Authentication error
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. docs/smb3-features/06-witness-protocol-design.md

    ```java
    package jcifs.internal.witness;
    
    import java.util.List;
    import java.util.ArrayList;
    
    public class WitnessNotification {
        private final WitnessEventType eventType;
        private final long timestamp;
        private final String resourceName;
        private final List<WitnessIPAddress> newIPAddresses;
        private final List<WitnessIPAddress> oldIPAddresses;
        private final String clientAccessPoint;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

                                this.name));
                    }
                    if ((next == null || chain.allowChain(next)) && totalSize + size < maxSize && this.credits.tryAcquire(cost)) {
                        totalSize += size;
                        last = chain;
                        chain = next;
                    } else if (last == null && totalSize + size > maxSize) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top