src/java.net.http/share/classes/jdk/internal/net/http/Http2Connection.java
changeset 52499 768b1c612100
parent 51364 31d9e82b2e64
equal deleted inserted replaced
52498:c3066f7465fa 52499:768b1c612100
   412         return client2.client();
   412         return client2.client();
   413     }
   413     }
   414 
   414 
   415     // call these before assigning a request/stream to a connection
   415     // call these before assigning a request/stream to a connection
   416     // if false returned then a new Http2Connection is required
   416     // if false returned then a new Http2Connection is required
   417     // if true, the the stream may be assigned to this connection
   417     // if true, the stream may be assigned to this connection
   418     // for server push, if false returned, then the stream should be cancelled
   418     // for server push, if false returned, then the stream should be cancelled
   419     synchronized boolean reserveStream(boolean clientInitiated) throws IOException {
   419     synchronized boolean reserveStream(boolean clientInitiated) throws IOException {
   420         if (finalStream) {
   420         if (finalStream) {
   421             return false;
   421             return false;
   422         }
   422         }