|
1 | 1 | /*
|
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. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
|
28 | 28 |
|
29 | 29 | /*
|
30 | 30 | * @test
|
31 |
| - * @bug 8274736 8277970 |
| 31 | + * @bug 8274736 8277970 8355262 |
32 | 32 | * @summary Concurrent read/close of SSLSockets causes SSLSessions to be
|
33 | 33 | * invalidated unnecessarily
|
34 | 34 | * @library /javax/net/ssl/templates
|
@@ -285,7 +285,7 @@ public void doServerSide() throws Exception {
|
285 | 285 | // Signal the client, the server is ready to accept connection.
|
286 | 286 | serverCondition.countDown();
|
287 | 287 |
|
288 |
| - // Try to accept a connection in 5 seconds. |
| 288 | + // Try to accept a connection in 10 seconds. |
289 | 289 | // We will do this in a loop until the client flips the
|
290 | 290 | // finished variable to true
|
291 | 291 | SSLSocket sslSocket;
|
@@ -351,7 +351,7 @@ public void doServerSide() throws Exception {
|
351 | 351 | public void configureServerSocket(SSLServerSocket socket) {
|
352 | 352 | try {
|
353 | 353 | socket.setReuseAddress(true);
|
354 |
| - socket.setSoTimeout(5000); |
| 354 | + socket.setSoTimeout(10000); |
355 | 355 | } catch (SocketException se) {
|
356 | 356 | // Rethrow as unchecked to satisfy the override signature
|
357 | 357 | throw new RuntimeException(se);
|
|
0 commit comments