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

(-)connectors/util/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java (-3 / +14 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;
422
            JdkCompat.getJdkCompat().getUnboundSocket(sslProxy);
422
        try {
423
            socket = JdkCompat.getJdkCompat().getUnboundSocket(sslProxy);
424
        } catch (IOException ex) {
425
            // Bug 50744 - some old JDKs do not implement unbound sockets
426
            if (log.isDebugEnabled()) {
427
                log.debug(sm.getString("jsse.ssl_conf_unbound_socket"), ex);
428
            }
429
            return;
430
        }
423
        if (socket == null) {
431
        if (socket == null) {
424
            // Can create unbound sockets (1.3 JVM) - can't test the connection
432
            // Can't create unbound sockets (1.3 JVM) - can't test the connection
433
            if (log.isDebugEnabled()) {
434
                log.debug(sm.getString("jsse.ssl_conf_unbound_socket"));
435
            }
425
            return;
436
            return;
426
        }
437
        }
427
        initServerSocket(socket);
438
        initServerSocket(socket);
(-)connectors/util/java/org/apache/tomcat/util/net/jsse/res/LocalStrings.properties (+1 lines)
Lines 15-17 Link Here
15
15
16
jsse.alias_no_key_entry=Alias name {0} does not identify a key entry
16
jsse.alias_no_key_entry=Alias name {0} does not identify a key entry
17
jsse.invalid_ssl_conf=SSL configuration is invalid due to {0}
17
jsse.invalid_ssl_conf=SSL configuration is invalid due to {0}
18
jsse.ssl_conf_unbound_socket=Unable to create an unbound server socket. SSL configuration check will be skipped.

Return to bug 50744