This PR updates AIACertTimeout.java to improve reliability:

- Replaces the default HttpServer executor with a single-threaded 
ExecutorService. One possible cause of the intermittent timeout is that that 
HttpHandler passed to createContext() (line 137) has an explicit sleep() call. 
The default executor executes the handler on the dispatcher thread. The sleep() 
call could make the HttpServer unresponsive.
- Replace "localhost" with "127.0.0.1"


---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8369615: sun/security/x509/URICertStore/AIACertTimeout.java intermittently 
fails

Changes: https://git.openjdk.org/jdk/pull/32814/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32814&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8369615
  Stats: 20 lines in 1 file changed: 9 ins; 3 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/32814.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32814/head:pull/32814

PR: https://git.openjdk.org/jdk/pull/32814

Reply via email to