File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
sun/security/ssl/SSLSocketImpl Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ protected void doServerSide() throws Exception {
190190 try {
191191 sslServerSocket .setSoTimeout (30000 );
192192 sslSocket = (SSLSocket )sslServerSocket .accept ();
193+ System .out .println ("Connection established on port : " +serverPort );
193194 } catch (SocketTimeoutException ste ) {
194195 // Ignore the test case if no connection within 30 seconds.
195196 System .out .println (
@@ -228,6 +229,7 @@ protected void doServerSide() throws Exception {
228229 }
229230 } finally {
230231 sslSocket .close ();
232+ System .out .println ("Connection closed on port : " +serverPort );
231233 }
232234 }
233235
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2001, 2024 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2001, 2025 , Oracle and/or its affiliates. All rights reserved.
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44 *
55 * This code is free software; you can redistribute it and/or modify it
3838
3939public class ReuseAddr extends SSLSocketTemplate {
4040
41- private static final int MAX_ATTEMPTS = 3 ;
41+ private static final int MAX_ATTEMPTS = 15 ;
4242
4343 @ Override
4444 protected void doServerSide () throws Exception {
@@ -65,6 +65,7 @@ public static void main(String[] args) throws Exception {
6565 System .err .println (msg );
6666 throw new AssertionError ("Failed to reuse address: " + msg , x );
6767 } else {
68+ Thread .sleep (100 *i );
6869 System .out .println ("Retrying..." );
6970 }
7071 }
You can’t perform that action at this time.
0 commit comments