Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for detectSelfConnect (0.12 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/TcpOutgoingConnector.java

            SocketChannel socketChannel = SocketChannel.open();
    
            try {
                socketChannel.socket().connect(new InetSocketAddress(candidate, address.getPort()), CONNECT_TIMEOUT);
    
                if (!detectSelfConnect(socketChannel)) {
                    return socketChannel;
                }
                socketChannel.close();
            } catch (IOException e) {
                socketChannel.close();
                throw e;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/inet/TcpConnectorTest.groovy

            when:
            socketChannel.socket().connect(selfConnect)
    
            then:
            outgoingConnector.detectSelfConnect(socketChannel)
    
            cleanup:
            socketChannel.close()
        }
    
        @Issue("GRADLE-2316")
        def "does not detect self connect when outgoing connection bind to different ports"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 10.4K bytes
    - Viewed (0)
Back to top