Skip to content

Commit

Permalink
Tweak wording
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuch committed Mar 14, 2024
1 parent 0562494 commit b9aa98a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/java.net.http/share/classes/java/net/http/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@
* {@link #close()}, {@link #shutdown()}, {@link #shutdownNow()},
* {@link #awaitTermination(Duration)}, and {@link #isTerminated()} to
* provide a best effort implementation. Failing to close, cancel, or
* read {@link ##streaming streaming bodies} to exhaustion may stop
* delivery of data and {@linkplain #awaitTermination(Duration) stall an
* orderly shutdown}. The {@link #shutdownNow()} method will attempt
* to cancel any such non-completed requests, but may cause
* read {@link ##streaming streaming or publishing bodies} to exhaustion
* may stop delivery of data while leaving the request open, and
* {@linkplain #awaitTermination(Duration) stall an
* orderly shutdown}. The {@link #shutdownNow()} method, if called, will
* attempt to cancel any such non-completed requests, but may cause
* abrupt termination of any on going operation.
*
* <p id="gc">
Expand All @@ -169,8 +170,8 @@
* eventually completed. This relies both on the garbage collector
* to notice that the instance is no longer reachable, and on all
* requests started on the client to eventually complete. Failure
* to properly close {@linkplain ##streaming streaming bodies} may
* prevent the associated requests from running to completion, and
* to properly close {@linkplain ##streaming streaming or publishing bodies}
* may prevent the associated requests from running to completion, and
* prevent the resources allocated by the associated client from
* being reclaimed by the garbage collector.
*
Expand Down

0 comments on commit b9aa98a

Please sign in to comment.