Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 178 for contention (0.61 sec)

  1. src/test/java/jcifs/SmbTransportPoolTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Comprehensive test suite for SmbTransportPool interface.
     * Tests all transport pool operations including connection management,
     * authentication, and lifecycle operations.
     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("SmbTransportPool Tests")
    class SmbTransportPoolTest {
    
        @Mock
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2EchoResponse.java

    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Echo response message.
     *
     * This response confirms that the server is still active
     * and the connection is working properly.
     *
     * @author mbechler
     */
    public class Smb2EchoResponse extends ServerMessageBlock2Response {
    
        /**
         * Constructs an SMB2 echo response
         * @param config the client configuration
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            // Mock transport.connect() to succeed
            doNothing().when(transport).connect();
    
            // Simulate failed tree connect
            doThrow(new SmbException("Connection failed")).when(session).send(any(ServerMessageBlock.class), any(ServerMessageBlock.class));
    
            assertThrows(SmbException.class, () -> tree.treeConnect(null, null));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/http/NetworkExplorer.java

                        continue;
                    }
                } catch (final SmbAuthException sae) {
                    log.warn("Auth failed", sae);
                } catch (final SmbException se) {
                    log.warn("Connection failed", se);
                    if (se.getNtStatus() != NtStatus.NT_STATUS_UNSUCCESSFUL) {
                        throw se;
                    }
                }
                if (dirents[i].isDirectory()) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcConstants.java

        int RPC_PT_CANCEL = 0x12;
        /**
         * Acknowledgment packet type
         */
        int RPC_PT_ACK = 0x13;
        /**
         * Reject packet type
         */
        int RPC_PT_REJECT = 0x14;
        /**
         * Connection-oriented cancel packet type
         */
        int RPC_PT_CO_CANCEL = 0x15;
        /**
         * Orphaned packet type
         */
        int RPC_PT_ORPHANED = 0x16;
    
        // RPC_C_PF_ flags (packet flags)
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponse.java

        /**
         * Named pipe status indicating the pipe is listening for connections.
         */
        public static final int STATUS_LISTENING = 2;
    
        /**
         * Named pipe status indicating the connection is established and operational.
         */
        public static final int STATUS_CONNECTION_OK = 3;
    
        /**
         * Named pipe status indicating the server end of the pipe is closed.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcBind.java

     */
    
    package jcifs.smb1.dcerpc;
    
    import jcifs.smb1.dcerpc.ndr.NdrBuffer;
    import jcifs.smb1.dcerpc.ndr.NdrException;
    
    /**
     * DCERPC Bind message for establishing a connection context.
     * This class handles the binding of DCERPC interfaces for RPC communication.
     */
    public class DcerpcBind extends DcerpcMessage {
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

                // Log circuit breaker rejection
                auditLogger.logSecurityViolation("Circuit breaker open for SMB connection",
                        java.util.Map.of("address", address.getHostAddress(), "port", String.valueOf(port)));
                throw new IOException("Connection rejected by circuit breaker: " + e.getMessage(), e);
            } catch (RuntimeException e) {
                // Unwrap IOException from RuntimeException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2EchoRequest.java

    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Echo request message.
     *
     * This command is used to test connectivity and ensure the
     * SMB2 connection is still active.
     *
     * @author mbechler
     */
    public class Smb2EchoRequest extends ServerMessageBlock2Request<Smb2EchoResponse> {
    
        /**
         * Constructs an SMB2 echo request
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        int DEFAULT_RCV_BUF_SIZE = 60416;
        /** Default send buffer size in bytes */
        int DEFAULT_SND_BUF_SIZE = 16644;
        /** Default session limit */
        int DEFAULT_SSN_LIMIT = 250;
        /** Default connection timeout in milliseconds */
        int DEFAULT_CONN_TIMEOUT = 35000;
    
        /** Local address to bind to */
        InetAddress LADDR = Config.getLocalHost();
        /** Local port to bind to */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top