On Wed, 11 Feb 2026 16:42:57 GMT, Christoph Läubrich <[email protected]> wrote:

> How is the connection eventually closed?

When close is called on the outputstream/exchange

> When the exchange is closed, is the connection returned to the pool, or 
> should it be closed? If it should be closed we do not want to rely on the 
> peer closing it. 

> If the peer closes the connection, will it linger in any of the map/list in 
> which the server keeps track of opened connection?

When the exchange/outstream is closed on an upgraded request, we send a 
WriteFinished Event to close and remove the Connection 

> What should happen if the server is stopped while the connection is still 
> active?

The same thing that happens when the server is stopped for a non upgraded 
request

> Should a still active upgraded connection be considered as using up one space 
> in the connection pool?

Yes

> What if there is a request timeout on the server side? Does it apply to 
> upgraded connections? Are they still in the REQUEST state?

I'm not sure I understand the question

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27989#discussion_r2794903060

Reply via email to