Skip to content

Commit fa53b2e

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

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
@@ -28,7 +28,7 @@
2828

2929
/*
3030
* @test
31-
* @bug 8274736 8277970
31+
* @bug 8274736 8277970 8355262
3232
* @summary Concurrent read/close of SSLSockets causes SSLSessions to be
3333
* invalidated unnecessarily
3434
* @library /javax/net/ssl/templates
@@ -285,7 +285,7 @@ public void doServerSide() throws Exception {
285285
// Signal the client, the server is ready to accept connection.
286286
serverCondition.countDown();
287287

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

0 commit comments

Comments
 (0)