Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8161091

Incorrect HTTP Stream.FlowControl implementation allows to send DataFrame even when window size was exhausted

XMLWordPrintable

    • b129
    • Not verified

      Incorrect Stream.FlowControl implementation allows to send DataFrame even when window size was exhausted. HTTP/2 server must consider such behavior as PROTOCOL_ERROR and close connection.

      Existing Stream.FlowControl implementation doesn't decrease amount of permits if requested amount is less than permits. That means that client may send any amount of data if data frame size less than window size.
      Fix suggested.

      Minor fix: there is no necessity to decrease requested buffer by 9 (header size) because of header size is not a part of flow control.

      Suggested fix: http://cr.openjdk.java.net/~skuksenko/jep110/8161091/webrev.00/

            skuksenko Sergey Kuksenko
            skuksenko Sergey Kuksenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: