mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-29 00:02:34 +00:00
8382222: sun/security/ssl/SSLSocketImpl/SSLSocketBruteForceClose.java fails sporadically
Reviewed-by: mbaesken
This commit is contained in:
parent
0566c79eb2
commit
a9613a324b
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2026, 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
|
||||
@ -73,7 +73,7 @@ public class SSLSocketBruteForceClose extends SSLSocketTemplate {
|
||||
protected void configureClientSocket(SSLSocket socket) {
|
||||
try {
|
||||
socket.setSoLinger(true, 3);
|
||||
socket.setSoTimeout(1000);
|
||||
socket.setSoTimeout(5000);
|
||||
} catch (SocketException exc) {
|
||||
throw new RuntimeException("Could not configure client socket", exc);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user