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
TempestaFW - 302ea8c from PR #2108
The
max_queued_control_framesdirective works correctly and client receive a connection block when it breaks the rule.But sometimes
Warning: Too many control frames in send queue, closing connectionwarning may not be output to the dmesgVM does not have limit for
net_ratelimitand I didn't see any message suppressionI just receive 1 warning for these tests
but expected
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) >= 0tocond=dmesg.amount_one