Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 374 for unblock (0.05 sec)

  1. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            // Block the IP
            for (int i = 1; i <= 5; i++) {
                assertTrue(rateLimiter.checkAttempt("user" + i, ip));
                rateLimiter.recordFailure("user" + i, ip);
            }
    
            // Should be blocked
            assertFalse(rateLimiter.checkAttempt("user6", ip), "IP should be blocked");
    
            // Manually unblock
            assertTrue(rateLimiter.unblockIp(ip), "Manual unblock should succeed");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. 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)
  3. android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
      public void testListenerCalledOnException() throws Exception {
        throwException = true;
    
        // Start up the task and unblock the latch to finish the task.
        exec.execute(task);
        runLatch.await();
        taskLatch.countDown();
    
        ExecutionException e = assertThrows(ExecutionException.class, () -> task.get(5, SECONDS));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
      public void testListenerCalledOnException() throws Exception {
        throwException = true;
    
        // Start up the task and unblock the latch to finish the task.
        exec.execute(task);
        runLatch.await();
        taskLatch.countDown();
    
        ExecutionException e = assertThrows(ExecutionException.class, () -> task.get(5, SECONDS));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. docs/changelogs/changelog_3x.md

        held by a prior request.
     *  Fix: Ensure network interceptors always have access to the underlying
        connection.
     *  Fix: Use `X509TrustManagerExtensions` on Android 17+.
     *  Fix: Unblock waiting dispatchers on MockWebServer shutdown.
    
    
    ## Version 3.2.0
    
    _2016-02-25_
    
     *  Fix: Change the certificate pinner to always build full chains. This
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(stream1.writeBytesMaximum)
          .isEqualTo(Settings.DEFAULT_INITIAL_WINDOW_SIZE.toLong())
    
        // receiving a window update on the connection will unblock new streams.
        connection.readerRunnable.windowUpdate(0, 3)
        assertThat(connection.writeBytesTotal)
          .isEqualTo(Settings.DEFAULT_INITIAL_WINDOW_SIZE.toLong())
        assertThat(connection.writeBytesMaximum)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  10. cmd/namespace-lock.go

    	}
    	timeout.LogSuccess(UTCNow().Sub(start))
    	return LockContext{ctx: newCtx, cancel: cancel}, nil
    }
    
    // Unlock - block until write lock is released.
    func (di *distLockInstance) Unlock(lc LockContext) {
    	if lc.cancel != nil {
    		lc.cancel()
    	}
    	di.rwMutex.Unlock(context.Background())
    }
    
    // RLock - block until read lock is taken or timeout has occurred.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top