|
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
|
|
30 | 30 |
|
31 | 31 | /*
|
32 | 32 | * @test
|
33 |
| - * @bug 8274736 8277970 |
| 33 | + * @bug 8274736 8277970 8355262 |
34 | 34 | * @summary Concurrent read/close of SSLSockets causes SSLSessions to be
|
35 | 35 | * invalidated unnecessarily
|
36 | 36 | * @library /javax/net/ssl/templates
|
@@ -287,7 +287,7 @@ public void doServerSide() throws Exception {
|
287 | 287 | // Signal the client, the server is ready to accept connection.
|
288 | 288 | serverCondition.countDown();
|
289 | 289 |
|
290 |
| - // Try to accept a connection in 5 seconds. |
| 290 | + // Try to accept a connection in 10 seconds. |
291 | 291 | // We will do this in a loop until the client flips the
|
292 | 292 | // finished variable to true
|
293 | 293 | SSLSocket sslSocket;
|
@@ -353,7 +353,7 @@ public void doServerSide() throws Exception {
|
353 | 353 | public void configureServerSocket(SSLServerSocket socket) {
|
354 | 354 | try {
|
355 | 355 | socket.setReuseAddress(true);
|
356 |
| - socket.setSoTimeout(5000); |
| 356 | + socket.setSoTimeout(10000); |
357 | 357 | } catch (SocketException se) {
|
358 | 358 | // Rethrow as unchecked to satisfy the override signature
|
359 | 359 | throw new RuntimeException(se);
|
|
0 commit comments