< prev index next >

src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java

Print this page

        

*** 209,219 **** // 1. For HTTP/2 it is incremented when a stream is added to the // Http2Connection streams map, and decreased when the stream is removed // from the map. This should also take care of push promises. // 2. For WebSocket the count is increased when creating a // DetachedConnectionChannel for the socket, and decreased ! // when the the channel is closed. // In addition, the HttpClient facade is passed to the WebSocket builder, // (instead of the client implementation delegate). // 3. For HTTP/1.1 the count is incremented before starting to parse the body // response, and decremented when the parser has reached the end of the // response body flow. --- 209,219 ---- // 1. For HTTP/2 it is incremented when a stream is added to the // Http2Connection streams map, and decreased when the stream is removed // from the map. This should also take care of push promises. // 2. For WebSocket the count is increased when creating a // DetachedConnectionChannel for the socket, and decreased ! // when the channel is closed. // In addition, the HttpClient facade is passed to the WebSocket builder, // (instead of the client implementation delegate). // 3. For HTTP/1.1 the count is incremented before starting to parse the body // response, and decremented when the parser has reached the end of the // response body flow.
< prev index next >