netty5/codec-http2/src/main
zhangduo e949dcd94f Allow numBytes == 0 when calling Http2LocalFlowController.consumeBytes.
Motivation:

Sometimes people use a data frame with length 0 to end a stream(such as jetty http2-server). So it is possible that data.readableBytes and padding are all 0 for a data frame, and cause an IllegalArgumentException when calling flowController.consumeBytes.

Modifications:

Return false when numBytes == 0 instead of throwing IllegalArgumentException.

Result:

Fix IllegalArgumentException.
2015-07-09 08:43:52 -07:00
..
java/io/netty/handler/codec/http2 Allow numBytes == 0 when calling Http2LocalFlowController.consumeBytes. 2015-07-09 08:43:52 -07:00