netty5/codec-http2/src
Norman Maurer 8cae1ed959
Ignore priority frames for non existing streams and so prevent a NPE (#10943)
Motivation:

https://github.com/netty/netty/pull/10765 added support for push promise and priority frames when using the Http2FrameCodec. Unfortunally it didnt correctly guard against the possibility to receive a priority frame for an non-existing stream, which resulted in a NPE

Modifications:

- Ignore priority frame for non existing stream
- Correctly implement equals / hashcode for DefaultHttp2PriorityFrame
- Add unit tests

Result:

Fixes https://github.com/netty/netty/issues/10941
2021-01-18 14:11:07 +01:00
..
main Ignore priority frames for non existing streams and so prevent a NPE (#10943) 2021-01-18 14:11:07 +01:00
test Ignore priority frames for non existing streams and so prevent a NPE (#10943) 2021-01-18 14:11:07 +01:00