Limit the number of connections for each IP address


Count the number of active connections for each IP address and refuse
incoming connections when that amount is reached. The number of
connections can be configured in QHttpServerConfiguration. If
set to 0, the limitation is disabled. By default this is disabled.

For HTTP/1.* HTTP status 429 is returned.
For SSL connections the connection is closed during SSL handshake

[ChangeLog] Added configurable limit to the number of active connections
for each IP address.

Task-number: QTBUG-142563
Change-Id: Ie1be2539738a9eff059d21f8fb190fb8c6f0ca60
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
commit00f7eb06a56971eca6a7b145b7e630ba7bee7795
parentc63465dbd740e6dd093465ea12e8057baf08cd59
authorAyesha Ishaq <ayesha.ishaq@qt.io>
committerAyesha Ishaq <ayesha.ishaq@qt.io>
commit timeWed, 4 Feb 2026 12:40:40 +0100