Skip to content

altsvc: decrease entry count when expired entry is removed - #5553

Closed
jay wants to merge 1 commit into
curl:masterfrom
jay:altsvc_fix_exp_entry_num
Closed

altsvc: decrease entry count when expired entry is removed#5553
jay wants to merge 1 commit into
curl:masterfrom
jay:altsvc_fix_exp_entry_num

Conversation

@jay

@jay jay commented Jun 11, 2020

Copy link
Copy Markdown
Member

Prior to this change the lookup function did not adjust the count
when purging expired entries. AFAICS the count is only used by test
unit1654 so there does not appear to have been any consequence.

Closes #xxxx


I noticed this while investigating #5552 but it is not related.

Prior to this change the lookup function did not adjust the count
when purging expired entries. AFAICS the count is only used by test
unit1654 so there does not appear to have been any consequence.

Closes #xxxx
@jay

jay commented Jun 11, 2020

Copy link
Copy Markdown
Member Author

I wonder couldn't as->list.size be used why keep track separately with num

@bagder

bagder commented Jun 11, 2020

Copy link
Copy Markdown
Member

That would both save a variable and make sure they're always in sync, agreed!

bagder added a commit that referenced this pull request Jun 12, 2020
It was superfluous since we have the list.size alredy

Reported-by: Jay Satiro
Fixes #5553
@bagder bagder closed this in b88bded Jun 12, 2020
@jay
jay deleted the altsvc_fix_exp_entry_num branch June 17, 2020 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants