- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for disconnect (0.04 sec)
-
src/main/java/jcifs/smb1/util/transport/Transport.java
thread = null; } } } /** * Disconnects from the remote endpoint. * * @param hard if true, disconnect immediately without waiting for outstanding requests * @throws IOException if an I/O error occurs during disconnection */ public synchronized void disconnect(boolean hard) throws IOException { IOException ioe = null; switch (state) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportInternalTest.java
return (h && !u) || (!h && u); }); boolean result = transport.disconnect(hard, inuse); assertEquals(expected, result); verify(transport, times(1)).disconnect(hard, inuse); } // Error case: disconnect throws IOException @Test @DisplayName("disconnect throws IOException when underlying close fails") void disconnect_throwsIOException() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/util/transport/Transport.java
} } /** * Disconnect the transport * * @param hard if true, disconnect immediately without waiting for outstanding requests * @return whether connection was in use * @throws IOException if an I/O error occurs during disconnection */ public synchronized boolean disconnect(final boolean hard) throws IOException { return disconnect(hard, true); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 27.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
// Disconnect and try again from scratch. if (log.isDebugEnabled()) { log.debug(String.format("Retrying (%d/%d) request %s", retries, maxRetries, request)); } // should we disconnect the transport here? otherwise we make an additional attempt to detect that if the
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
nonPooledConnections.offer(nonPooledSpy); // Mock disconnect behavior when(pooledSpy.disconnect(false, false)).thenReturn(true); // In use when(nonPooledSpy.disconnect(false, false)).thenReturn(false); // Not in use // When: Close the pool boolean inUse = pool.close(); // Then: Should report in-use and call disconnect on all assertTrue(inUse, "Should report connections in use");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
* Someone removed the share while we were * connected. Bastards! Disconnect this tree * so that it reconnects cleanly should the share * reappear in this client's lifetime. */ log.debug("Disconnect tree on NT_STATUS_NETWORK_NAME_DELETED"); treeDisconnect(true, true); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
} /** * Test that disconnect() calls disconnect() on the underlying connection and resets state. */ @Test void testDisconnect() throws Exception { // Act ntlmConnection.disconnect(); // Assert verify(mockConnection).disconnect(); // Connection should be closed after disconnect } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java
return responseData; } /** * Disconnects the internal FTP client and logs any errors. * This method is used to clean up failed connections. * * @param client The FTP client to disconnect */ protected void disconnectInternalClient(final FTPClient client) { try { client.disconnect(); } catch (final IOException e) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 39.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
default: disconnect(true); throw new NbtException(NbtException.ERR_SSN_SRVC, errorCode); } break; case -1: disconnect(true); throw new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED); default: disconnect(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0)