Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for rathe (0.1 sec)

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

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.smb.SmbException;
    
    /**
     * Rate limiter for authentication attempts to prevent brute force attacks.
     *
     * Features:
     * - Per-account rate limiting
     * - Per-IP rate limiting
     * - Global rate limiting
     * - Exponential backoff for repeated failures
     * - Account lockout after threshold
     * - Automatic cleanup of old entries
     */
    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. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/SmbCircuitBreaker.java

                long avgResponseTime = metrics.getAverageResponseTime();
    
                // Adjust threshold based on failure rate and response time trends
                int currentThreshold = this.failureThreshold;
                int newThreshold = currentThreshold;
    
                // If failure rate is high but response time is normal, be more lenient
                if (failureRate > 0.5 && avgResponseTime < 5000) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  5. docs/metrics/prometheus/grafana/minio-dashboard.json

              },
              "exemplar": true,
              "expr": "sum by (server) (rate(minio_s3_traffic_received_bytes{job=~\"$scrape_jobs\"}[$__rate_interval]))",
              "interval": "1m",
              "intervalFactor": 2,
              "legendFormat": "Data Received [{{server}}]",
              "refId": "A"
            }
          ],
          "title": "S3 API Ingress Rate ",
          "type": "timeseries"
        },
        {
          "datasource": {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Aug 04 01:46:49 UTC 2025
    - 93.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            // Make many attempts to trigger global rate limit
            for (int i = 1; i <= 20; i++) {
                assertTrue(rateLimiter.checkAttempt("user" + i, "192.168.1." + i), "Attempt " + i + " should be allowed");
            }
    
            // 21st attempt should be blocked by global rate limit
            assertFalse(rateLimiter.checkAttempt("user21", "192.168.1.21"), "Should block after global rate limit");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

         * for a detailed description and examples of the smb URL syntax. If the
         * second argument is <code>true</code>, then bytes will be written to the
         * end of the file rather than the beginning.
         *
         * @param url An smb URL string representing the file to write to
         * @param append Append to the end of file
         * @throws SmbException if an SMB error occurs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Hashing.java

       * by RFC 3720, Section 12.1.
       *
       * <p>This function is best understood as a <a
       * href="https://en.wikipedia.org/wiki/Checksum">checksum</a> rather than a true <a
       * href="https://en.wikipedia.org/wiki/Hash_function">hash function</a>.
       *
       * @since 18.0
       */
      public static HashFunction crc32c() {
        return Crc32cHashFunction.CRC_32_C;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

        }
    
        /**
         * Increment error counter
         */
        public void incrementErrors() {
            errors.incrementAndGet();
        }
    
        /**
         * Get error rate (errors / total requests)
         *
         * @return error rate between 0.0 and 1.0
         */
        public double getErrorRate() {
            long total = requestsSent.get();
            if (total == 0)
                return 0.0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/PACDecodingExceptionTest.java

            PACDecodingException e = new PACDecodingException(cause);
            // When constructed with only a cause, the implementation passes (null, cause) to super
            // which results in a null message rather than deriving it from the cause
            assertNull(e.getMessage());
            assertSame(cause, e.getCause());
        }
    
        /**
         * Test the constructor with both a message and a cause.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top