Change the tests to use blocking sockets instead.

This change removes the busy-looping on finishConnect, read, and write. The 
change is safe because:
- finishConnect is no longer necessary,
- all uses of write() loop until wither all data is written or an error occurs
- read() is only used when additional data is expected.

Tier2 still green.

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

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

Commit messages:
 - Use blocking mode

Changes: https://git.openjdk.org/jdk/pull/31912/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31912&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8388307
  Stats: 89 lines in 6 files changed: 0 ins; 77 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/31912.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31912/head:pull/31912

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

Reply via email to