ntex-rs / ntex-amqp

AMQP 1.0 Server framework
Apache License 2.0
66 stars 15 forks source link

Fix session flow frame handling #30

Closed fafhrd91 closed 1 year ago

fafhrd91 commented 1 year ago

Fix session flow frame handling, could cause tight loop and 100% cpu consumption

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 56.60% and project coverage change: +0.17 :tada:

Comparison is base (f55dac4) 48.69% compared to head (3df048c) 48.87%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #30 +/- ## ========================================== + Coverage 48.69% 48.87% +0.17% ========================================== Files 34 34 Lines 3401 3409 +8 ========================================== + Hits 1656 1666 +10 + Misses 1745 1743 -2 ``` | [Impacted Files](https://app.codecov.io/gh/ntex-rs/ntex-amqp/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ntex-rs) | Coverage Δ | | |---|---|---| | [src/session.rs](https://app.codecov.io/gh/ntex-rs/ntex-amqp/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ntex-rs#diff-c3JjL3Nlc3Npb24ucnM=) | `40.07% <40.00%> (+0.59%)` | :arrow_up: | | [src/sndlink.rs](https://app.codecov.io/gh/ntex-rs/ntex-amqp/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ntex-rs#diff-c3JjL3NuZGxpbmsucnM=) | `41.02% <50.00%> (-0.40%)` | :arrow_down: | | [src/dispatcher.rs](https://app.codecov.io/gh/ntex-rs/ntex-amqp/pull/30?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ntex-rs#diff-c3JjL2Rpc3BhdGNoZXIucnM=) | `42.78% <73.91%> (+2.55%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/ntex-rs/ntex-amqp/pull/30/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ntex-rs)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.