Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for unblockIp (0.08 sec)

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

        }
    
        /**
         * Manually unblock an IP
         *
         * @param sourceIp the IP to unblock
         * @return true if IP was unblocked, false if not found
         */
        public boolean unblockIp(String sourceIp) {
            IpAttempts ip = ipAttempts.get(sourceIp);
            if (ip != null) {
                ip.reset();
                log.info("Manually unblocked IP: {}", sourceIp);
                return true;
            }
    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/AuthenticationRateLimiterTest.java

            assertFalse(rateLimiter.checkAttempt("user6", ip), "IP should be blocked");
    
            // Manually unblock
            assertTrue(rateLimiter.unblockIp(ip), "Manual unblock should succeed");
    
            // Should be allowed again
            assertTrue(rateLimiter.checkAttempt("user7", ip), "Should be allowed after manual unblock");
        }
    
        @Test
        public void testNullUsername() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

      fun assertNoMoreTasks() {
        taskRunner.assertLockNotHeld()
    
        taskRunner.withLock {
          assertThat(activeThreads).isEqualTo(0)
        }
      }
    
      /** Unblock a waiting task thread. Used by the test thread only. */
      fun interruptCoordinatorThread() {
        taskRunner.assertLockNotHeld()
        require(currentTask == TestThreadSerialTask)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        connection.setReadTimeout(500)
        try {
          connection.getResponseCode()
          fail<Any>()
        } catch (expected: SocketTimeoutException) {
        }
    
        // Shutting down the server should unblock the dispatcher.
        server.shutdown()
      }
    
      @Test
      fun requestUrlReconstructed() {
        server.enqueue(MockResponse().setBody("hello world"))
        val url = server.url("/a/deep/path?key=foo%20bar").toUrl()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

              }
            };
        f.set("foo");
      }
    
      // Regression test for a case where we would fail to execute listeners immediately on done futures
      // this would be observable from a waiter that was just unblocked.
      public void testListenersExecuteImmediately_afterWaiterWakesUp() throws Exception {
        AbstractFuture<String> f =
            new AbstractFuture<String>() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        connection.readTimeout = 500
        assertFailsWith<SocketTimeoutException> {
          connection.responseCode
        }
    
        // Closing the server should unblock the dispatcher.
        server.close()
      }
    
      @Test
      fun requestUrlReconstructed() {
        server.enqueue(
          MockResponse
            .Builder()
            .body("hello world")
            .build(),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

              }
            };
        f.set("foo");
      }
    
      // Regression test for a case where we would fail to execute listeners immediately on done futures
      // this would be observable from a waiter that was just unblocked.
      public void testListenersExecuteImmediately_afterWaiterWakesUp() throws Exception {
        AbstractFuture<String> f =
            new AbstractFuture<String>() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
Back to top