Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Spread (0.03 sec)

  1. src/main/java/jcifs/util/transport/Transport.java

        }
    
        /**
         * Cleans up the transport thread.
         *
         * @param timeout the maximum time to wait for thread cleanup in milliseconds
         * @throws TransportException if thread cleanup fails
         */
        private synchronized void cleanupThread(final long timeout) throws TransportException {
            final Thread t = this.thread;
            if (t != null && Thread.currentThread() != t) {
                this.thread = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/MultiChannelManager.java

            // Create thread pools
            this.channelExecutor = Executors.newCachedThreadPool(r -> {
                Thread t = new Thread(r, "SMB3-MultiChannel-Worker");
                t.setDaemon(true);
                return t;
            });
    
            this.healthCheckExecutor = Executors.newScheduledThreadPool(2, r -> {
                Thread t = new Thread(r, "SMB3-MultiChannel-HealthCheck");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                    try {
                        // Invalidate any cached read data
                        // This would typically clear file's internal read buffers
                        // For now, we log the action as the actual implementation
                        // depends on SmbFile's internal caching mechanism
                        log.info("Invalidated read cache for: {}", path);
                    } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

                                session.acquire();
                                Thread.yield(); // Increase chance of race conditions
                                session.release();
                            } else {
                                session.acquire();
                                // Hold for a bit
                                Thread.sleep(1);
                                session.release();
                            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        private long lastHealthCheck = System.currentTimeMillis();
    
        // Advanced health monitoring
        private final ScheduledExecutorService healthCheckExecutor = Executors.newSingleThreadScheduledExecutor(r -> {
            Thread t = new Thread(r, "SmbTransportPool-HealthCheck");
            t.setDaemon(true);
            return t;
        });
        private ScheduledFuture<?> healthCheckTask;
        private volatile boolean healthCheckingEnabled = true;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            System.out.printf("  Avg tree operation time: %.2f ns%n", avgOpTimeNs);
    
            // Verify thread safety and performance
            assertTrue(exceptions.isEmpty(), "No exceptions should occur with thread-safe collections: " + exceptions);
            assertEquals(threadCount * operationsPerThread, treeOperations.get());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  7. .github/workflows/scorecard.yml

      # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
      schedule:
        - cron: '45 9 * * 0'
      push:
        branches: [ "master" ]
    
    # Declare default permissions as read only.
    permissions: read-all
    
    jobs:
      analysis:
        name: Scorecard analysis
        runs-on: ubuntu-latest
        permissions:
          # Needed to upload the results to code-scanning dashboard.
          security-events: write
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 19:19:31 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            this.attrs = attrs;
            this.options = options;
            this.tree = tree.acquire();
            this.tree_num = tree.getTreeId();
    
            if (cfg.isTraceResourceUsage()) {
                this.creationBacktrace = Thread.currentThread().getStackTrace();
            } else {
                this.creationBacktrace = null;
            }
        }
    
        /**
         * @param cfg
         * @param fid
         * @param tree
         * @param unc
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  9. src/main/java/jcifs/smb/SmbTreeImpl.java

                log.trace("Acquire tree " + usage + " " + this);
            }
    
            if (track && this.traceResource) {
                synchronized (this.acquires) {
                    this.acquires.add(truncateTrace(Thread.currentThread().getStackTrace()));
                }
            }
    
            if (usage == 1) {
                synchronized (this) {
                    if (this.sessionAcquired.compareAndSet(false, true)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

                BufferCache.releaseBuffer(correctBuffer); // Should accept correct size
            });
        }
    
        /**
         * Test concurrent buffer allocation and release for thread safety.
         */
        @Test
        public void testConcurrentBufferOperations() throws Exception {
            // Given
            int threadCount = 10;
            int opsPerThread = 100;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top