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

(-)connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java (-3 / +8 lines)
Lines 418-427 Link Here
418
     */
418
     */
419
    protected void checkConfig() throws IOException {
419
    protected void checkConfig() throws IOException {
420
        // Create an unbound server socket
420
        // Create an unbound server socket
421
        ServerSocket socket =
421
        ServerSocket socket = null;
422
            JdkCompat.getJdkCompat().getUnboundSocket(sslProxy);
422
        try {
423
            socket = JdkCompat.getJdkCompat().getUnboundSocket(sslProxy);
424
        } catch (IOException ex) {
425
            // Bug 50744:
426
            // Some old JDKs do not implement unbound sockets
427
        }
423
        if (socket == null) {
428
        if (socket == null) {
424
            // Can create unbound sockets (1.3 JVM) - can't test the connection
429
            // Can't create unbound sockets (1.3 JVM) - can't test the connection
425
            return;
430
            return;
426
        }
431
        }
427
        initServerSocket(socket);
432
        initServerSocket(socket);

Return to bug 50744