Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #263140

Category None
Changed by Daniel Stenberg <danielohnoyoudont@haxx.se>
Changed at Wed 01 Apr 2026 12:09:18
Repository https://api.github.com/repos/curl/curl
Project curl/curl
Branch bagder/hsts-max
Revision 7925308ff5bc06450a143492e955069855e8ea1c

Comments

HSTS: cap the list at 1,000 entries

Avoid never-ending growth.

When adding more entries, it now deletes the first entry in the list,
which is the oldest added entry still held in memory. I decided to avoid
a Least Recently Used concept as I suspect with a list with this many
entries most entries have not been used, and we don't save the timestamp
of recent use anyway.

The net effect might (no matter what) be that the removed entry might
feel a bit "random" in the eyes of the user.

Verify with test 1674

Ref #21183

Changed files