Skip to content

Commit c06ed5d

Browse files
committed
8355262: Test sun/security/ssl/SSLSessionImpl/NoInvalidateSocketException.java failed: accept timed out
Backport-of: 8b16897b74cfdc3c2693e3ae7e05f3d8c6468ebe
1 parent 3ea5f07 commit c06ed5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jdk/sun/security/ssl/SSLSessionImpl/NoInvalidateSocketException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 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
@@ -30,7 +30,7 @@
3030

3131
/*
3232
* @test
33-
* @bug 8274736 8277970
33+
* @bug 8274736 8277970 8355262
3434
* @summary Concurrent read/close of SSLSockets causes SSLSessions to be
3535
* invalidated unnecessarily
3636
* @library /javax/net/ssl/templates
@@ -287,7 +287,7 @@ public void doServerSide() throws Exception {
287287
// Signal the client, the server is ready to accept connection.
288288
serverCondition.countDown();
289289

290-
// Try to accept a connection in 5 seconds.
290+
// Try to accept a connection in 10 seconds.
291291
// We will do this in a loop until the client flips the
292292
// finished variable to true
293293
SSLSocket sslSocket;
@@ -353,7 +353,7 @@ public void doServerSide() throws Exception {
353353
public void configureServerSocket(SSLServerSocket socket) {
354354
try {
355355
socket.setReuseAddress(true);
356-
socket.setSoTimeout(5000);
356+
socket.setSoTimeout(10000);
357357
} catch (SocketException se) {
358358
// Rethrow as unchecked to satisfy the override signature
359359
throw new RuntimeException(se);

0 commit comments

Comments
 (0)