arturobernalg commented on PR #654:
URL: 
https://github.com/apache/httpcomponents-core/pull/654#issuecomment-4091322232

   > Why is this needed? What does this improve excactly?
   
   @ok2c 
   RFC 9113 recommends two-phase graceful shutdown for HTTP/2: initial GOAWAY 
with 2^31-1, wait one RTT, then final GOAWAY with the actual last processed 
stream id. This improves correctness of connection draining by avoiding 
shutdown races around in-flight stream creation and by preserving an accurate 
final GOAWAY boundary.
   
   https://www.rfc-editor.org/rfc/rfc9113.html#section-6.8
   
   “A server that is attempting to gracefully shut down a connection SHOULD 
send an initial GOAWAY frame with the last stream identifier set to 2^31-1 and 
a NO_ERROR code.”
   
   “After allowing time for any in-flight stream creation (at least one 
round-trip time), the server MAY send another GOAWAY frame with an updated last 
stream identifier.”


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to