View | Details | Raw Unified | Return to bug 43327
Collapse All | Expand All

(-)org/apache/tomcat/util/net/AprEndpoint.java (-2 / +2 lines)
Lines 599-606 Link Here
599
        long inetAddress = Address.info(addressStr, family,
599
        long inetAddress = Address.info(addressStr, family,
600
                port, 0, rootPool);
600
                port, 0, rootPool);
601
        // Create the APR server socket
601
        // Create the APR server socket
602
        serverSock = Socket.create(family, Socket.SOCK_STREAM,
602
        serverSock = Socket.create(Address.getInfo(inetAddress).family,
603
                Socket.APR_PROTO_TCP, rootPool);
603
                Socket.SOCK_STREAM, Socket.APR_PROTO_TCP, rootPool);
604
        if (OS.IS_UNIX) {
604
        if (OS.IS_UNIX) {
605
            Socket.optSet(serverSock, Socket.APR_SO_REUSEADDR, 1);
605
            Socket.optSet(serverSock, Socket.APR_SO_REUSEADDR, 1);
606
        }
606
        }

Return to bug 43327