Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-696

When H2 connection turns to be graceful shutdown, a single HEADERS or PUSH_PROMISE frame with the END_HEADERS flag set should be consumed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1
    • 5.1.3, 5.2-beta1
    • HttpCore
    • None

    Description

      current implemention in version 5.1, when connection gracefully shutdown and receives a single HEADERS frame with END_HEADERS flag set, it will throws "Stream refused" exception, not sure about this. 

      As RFC7540 section 4.3 defines, looks like single HEADERS frame should be consumed.

       

      This code in org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:1073

       

      Attachments

        1. image-2021-11-08-20-06-43-301.png
          190 kB
          yinwoods
        2. image-2021-11-08-20-07-02-610.png
          191 kB
          yinwoods

        Activity

          People

            olegk Oleg Kalnichevski
            yinwoods yinwoods
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified