On Wed, 19 Nov 2025 15:56:04 GMT, Daniel Fuchs <[email protected]> wrote:

> Each HttpClient instance creates an additional platform thread for its 
> SelectorManager. With recent updates to NIO/VirtualThreads that thread could 
> now become a VirtualThread. This would avoid having each HttpClient instance 
> use up one platform thread.
> This is similar to what was done for the HttpClient QuicSelectorThread in 
> [JDK-8369920](https://bugs.openjdk.org/browse/JDK-8369920).
> This should be transparent for users of the API. 
> An undocumented internal system property is introduced that can revert the 
> change in case of unforeseen trouble.

This pull request has now been integrated.

Changeset: aec54726
Author:    Daniel Fuchs <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/aec54726df7efdea6f85ccd26763acb7ee839e2f
Stats:     298 lines in 9 files changed: 271 ins; 15 del; 12 mod

8372159: HttpClient SelectorManager thread could be a VirtualThread

Reviewed-by: djelinski

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

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

Reply via email to