Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/jdk/javax/net/ssl/templates/SSLSocketTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ protected void doServerSide() throws Exception {
try {
sslServerSocket.setSoTimeout(30000);
sslSocket = (SSLSocket)sslServerSocket.accept();
System.out.println("Connection established on port : " +serverPort);
} catch (SocketTimeoutException ste) {
// Ignore the test case if no connection within 30 seconds.
System.out.println(
Expand Down Expand Up @@ -228,6 +229,7 @@ protected void doServerSide() throws Exception {
}
} finally {
sslSocket.close();
System.out.println("Connection closed on port : " +serverPort);
}
}

Expand Down
5 changes: 3 additions & 2 deletions test/jdk/sun/security/ssl/SSLSocketImpl/ReuseAddr.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2025, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -38,7 +38,7 @@

public class ReuseAddr extends SSLSocketTemplate {

private static final int MAX_ATTEMPTS = 3;
private static final int MAX_ATTEMPTS = 15;

@Override
protected void doServerSide() throws Exception {
Expand All @@ -65,6 +65,7 @@ public static void main(String[] args) throws Exception {
System.err.println(msg);
throw new AssertionError("Failed to reuse address: " + msg, x);
} else {
Thread.sleep(100*i);
System.out.println("Retrying...");
}
}
Expand Down