Ensure `HttpClient::available` returns `false` if the connection is not established or the associated socket is found to contain stale data to be read. Note that this verification is only performed for "streaming POST" requests.
--------- - [X] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Try to minimize the diff - Fix comment indentation - Remove `timeout` in `@run` - Remove `IsAvailable`, which is rendered redundant - More comments - Cosmetic improvements - Extend the test for secure connections - Return `false` from `HttpClient::available` if stale data is found - Add `StreamingPostHttpClientReuseTest` Changes: https://git.openjdk.org/jdk/pull/30859/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30859&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8180483 Stats: 615 lines in 4 files changed: 522 ins; 87 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/30859.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30859/head:pull/30859 PR: https://git.openjdk.org/jdk/pull/30859
