Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for reset (0.07 sec)

  1. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                        throw new SmbException("Account '" + username + "' is locked out until " + account.getLockoutExpiry());
                    } else {
                        // Lockout expired, reset
                        account.reset();
                    }
                }
            }
    
            // Check per-IP limit
            if (sourceIp != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN");
    
            // Manually reset
            circuitBreaker.reset();
            assertEquals(State.CLOSED, circuitBreaker.getState(), "Circuit should be CLOSED after reset");
            assertEquals(0, circuitBreaker.getFailureCount(), "Failure count should be reset");
        }
    
        @Test
        public void testCustomFailureDetection() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

            assertTrue(statsBefore.get(EventType.FILE_ACCESS) > 0, "Should have file access events before reset");
    
            logger.resetStatistics();
    
            Map<EventType, Long> statsAfter = logger.getStatistics();
            // After reset, all counters should be 0
            for (Long count : statsAfter.values()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/PreauthIntegrityTest.java

        }
    
        /**
         * Test that pre-auth hash is reset on error
         */
        @Test
        @DisplayName("Pre-auth integrity hash should reset on error")
        void testPreauthHashResetOnError() throws Exception {
            // Setup invalid SMB2 state to trigger error
            setPrivateField(transport, "smb2", false);
    
            // Try to update preauth hash - should fail and reset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. src/bufio/bufio.go

    func (b *Writer) Size() int { return len(b.buf) }
    
    // Reset discards any unflushed buffered data, clears any error, and
    // resets b to write its output to w.
    // Calling Reset on the zero value of [Writer] initializes the internal buffer
    // to the default size.
    // Calling w.Reset(w) (that is, resetting a [Writer] to itself) does nothing.
    func (b *Writer) Reset(w io.Writer) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
  6. cmd/background-newdisks-heal-ops.go

    			if len(healDisks) == 0 {
    				// Reset for next interval.
    				diskCheckTimer.Reset(defaultMonitorNewDiskInterval)
    				continue
    			}
    
    			// Reformat disks immediately
    			_, err := z.HealFormat(context.Background(), false)
    			if err != nil && !errors.Is(err, errNoHealRequired) {
    				healingLogIf(ctx, err)
    				// Reset for next interval.
    				diskCheckTimer.Reset(defaultMonitorNewDiskInterval)
    				continue
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

                                : Math.min(MAX_RETRY_DELAY, retryDelayMs * multiplier);
                        Thread.sleep(delay);
                    }
    
                    // Attempt to reset the connection
                    connection.reset();
    
                    // Verify connection is working
                    if (connection.getState() == RdmaConnection.RdmaConnectionState.ESTABLISHED) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

            // Test statistics reset functionality
            stats.reset();
            assertEquals(0, stats.getRdmaReads(), "Reads should be reset to 0");
            assertEquals(0, stats.getRdmaWrites(), "Writes should be reset to 0");
            assertEquals(0, stats.getBytesTransferred(), "Bytes should be reset to 0");
            assertEquals(0, stats.getOperationErrors(), "Errors should be reset to 0");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  9. cmd/callhome.go

    		case <-callhomeTimer.C:
    			if !globalCallhomeConfig.Enabled() {
    				// Stop the processing as callhome got disabled
    				return false
    			}
    
    			performCallhome(ctx)
    
    			// Reset the timer for next cycle.
    			callhomeTimer.Reset(globalCallhomeConfig.FrequencyDur())
    		}
    	}
    }
    
    func performCallhome(ctx context.Context) {
    	deadline := 10 * time.Second // Default deadline is 10secs for callhome
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

                if (request != null) {
                    log.debug("Resetting request");
                    request.reset();
                }
                if (rpath != null) {
                    // resolveDfs() and tree.send() modify the request packet.
                    // I want to restore it before retrying. request.reset()
                    // restores almost everything that was modified, except the path.
                    rpath.setPath(savedPath);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
Back to top