- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 65 for Disconnect (0.07 seconds)
-
src/test/java/jcifs/smb/SmbTransportInternalTest.java
} // Error case: disconnect throws IOException @Test @DisplayName("disconnect throws IOException when underlying close fails") void disconnect_throwsIOException() throws Exception { doThrow(new java.io.IOException("close error")).when(transport).disconnect(true, true); java.io.IOException ex = assertThrows(java.io.IOException.class, () -> transport.disconnect(true, true));Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.1K bytes - Click Count (0) -
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) {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 11.3K bytes - Click Count (0) -
internal/grid/muxserver.go
return pongMsg{Err: &err} default: atomic.StoreInt64(&m.LastPing, time.Now().Unix()) return pongMsg{} } } // disconnect will disconnect the mux. // m.recvMu must be locked when calling this function. func (m *muxServer) disconnect(msg string, locked bool) { if debugPrint { fmt.Println("Mux", m.ID, "disconnecting. Reason:", msg) } if msg != "" {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 9.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequest.java
import jcifs.internal.util.SMBUtil; /** * SMB2 Tree Disconnect request message. * * This command is used to disconnect from a previously * connected tree (shared resource). * * @author mbechler */ public class Smb2TreeDisconnectRequest extends ServerMessageBlock2Request<Smb2TreeDisconnectResponse> { /** * Creates a new SMB2 tree disconnect request to close a tree connection. *
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.5K bytes - Click Count (0) -
docs_src/websockets/tutorial003_py39.py
self.active_connections: list[WebSocket] = [] async def connect(self, websocket: WebSocket): await websocket.accept() self.active_connections.append(websocket) def disconnect(self, websocket: WebSocket): self.active_connections.remove(websocket) async def send_personal_message(self, message: str, websocket: WebSocket): await websocket.send_text(message)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.5K bytes - Click Count (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 theCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1) -
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); } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 27.8K bytes - Click Count (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");
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 19.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java
import jcifs.internal.util.SMBUtil; /** * SMB2 Tree Disconnect response message. * * This response confirms that the tree connection * has been successfully disconnected. * * @author mbechler */ public class Smb2TreeDisconnectResponse extends ServerMessageBlock2Response { /** * Creates a new SMB2 tree disconnect response. * * @param config the CIFS configuration */Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/TransportTest.java
@Test @DisplayName("disconnect should succeed when connected") void shouldDisconnectWhenConnected() throws IOException { transport.setState(3); // Connected assertFalse(transport.disconnect(false)); assertEquals(6, transport.state); // Should be disconnected } @Test @DisplayName("disconnect should force hard disconnect from run connected state")Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0)