Skip to content

sometimes max_queued_control_frames does not send a warning to dmesg #2126

@RomanBelozerov

Description

@RomanBelozerov

TempestaFW - 302ea8c from PR #2108

The max_queued_control_frames directive works correctly and client receive a connection block when it breaks the rule.
But sometimes Warning: Too many control frames in send queue, closing connection warning may not be output to the dmesg

VM does not have limit for net_ratelimit and I didn't see any message suppression

root@tempesta-test-6:~# cat /proc/sys/net/core/message_cost
0

I just receive 1 warning for these tests

Warning: request dropped: incorrect X-Forwarded-For header: 127.0.0.2

but expected

Warning: Too many control frames in send queue, closing connection
Warning: request dropped: incorrect X-Forwarded-For header: 127.0.0.2

Testing

http2_general.test_max_queued_control_frames.TestH2ControlFramesFlood.test_reset_stream_10_limit,
http2_general.test_max_queued_control_frames.TestH2ControlFramesFlood.test_ping,
http2_general.test_max_queued_control_frames.TestH2ControlFramesFlood.test_settings,

there is 1 more test in this directory - http2_general.test_max_queued_control_frames.TestH2ControlFramesFlood.test_reset_stream_default, bit it does not reproduce this problem.
Please change expected number of warning in tests from cond=lambda matches: len(matches) >= 0 to cond=dmesg.amount_one

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions