- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for unblock (2.01 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
setField(unlock, "byteOffset", 300L); setField(unlock, "lengthInBytes", 400L); setField(cmd, "locks", new LockingAndXRange[] { lock }); setField(cmd, "unlocks", new LockingAndXRange[] { unlock }); setField(cmd, "largeFile", false); byte[] buffer = new byte[20]; int len = cmd.writeParameterWordsWireFormat(buffer, 0);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
guidToHandle.put(guid, info); if (type == HandleType.PERSISTENT) { persistHandle(info); } } finally { lock.writeLock().unlock(); } log.debug("Requested {} handle for path: {}", type, path); return guid; } /** * Update the file ID for a handle after successful create response
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java
final int start = bufferIndex; for (int i = 0; i < this.unlocks.length; i++) { this.unlocks[i] = createLockRange(); bufferIndex += this.unlocks[i].decode(buffer, bufferIndex, buffer.length); } for (int i = 0; i < this.locks.length; i++) { this.locks[i] = createLockRange();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
} } finally { lock.writeLock().unlock(); } } public List<FileInfo> getChildren() { lock.readLock().lock(); try { lastAccessTime = System.currentTimeMillis(); return new ArrayList<>(children.values()); } finally { lock.readLock().unlock(); } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
DummyAndXBlock block = new DummyAndXBlock(next); assertNotNull(block); assertSame(next, block.andx, "andx should reference provided SMB"); } @Test @DisplayName("getBatchLimit defaults to 0") void testGetBatchLimitDefault() { DummyAndXBlock block = new DummyAndXBlock(); assertEquals(0, block.getBatchLimit((byte) 0x25)); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0)