-
Bug
-
Resolution: Fixed
-
P4
-
21
-
b05
-
x86_64
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8321664 | 21.0.3-oracle | Ramesh Gangadhar | P4 | Resolved | Fixed | b01 |
JDK-8322391 | 21.0.3 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
JDK-8323039 | 17.0.11-oracle | Shivangi Gupta | P4 | Resolved | Fixed | b01 |
JDK-8323568 | 17.0.11 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
public void testTimedAccept7() throws IOException {
try (ServerSocket ss = boundServerSocket()) {
ss.setSoTimeout(30*1000);
long delay = 2000;
scheduleClose(ss, delay);
long startMillis = millisTime();
try {
ss.accept().close();
fail();
} catch (SocketException expected) {
checkDuration(startMillis, delay-100, delay+2000);
}
}
}
It possible that the scheduled close my not be delivery in timely manner, such that the temporal constraint on the epoch for delivery is somewhat contrived.
The main semantics that is extracted from the test is that the close is delivered prior the timeout set on the serversocket.
- backported by
-
JDK-8321664 java/net/Socket/Timeouts.java fails with AssertionError on test temporal post condition
-
- Resolved
-
-
JDK-8322391 java/net/Socket/Timeouts.java fails with AssertionError on test temporal post condition
-
- Resolved
-
-
JDK-8323039 java/net/Socket/Timeouts.java fails with AssertionError on test temporal post condition
-
- Resolved
-
-
JDK-8323568 java/net/Socket/Timeouts.java fails with AssertionError on test temporal post condition
-
- Resolved
-
- links to
-
Commit openjdk/jdk17u-dev/1ef95db1
-
Commit openjdk/jdk21u-dev/0c924607
-
Commit openjdk/jdk/87c79c08
-
Review openjdk/jdk17u-dev/2113
-
Review openjdk/jdk21u-dev/14
-
Review openjdk/jdk/14690