Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

fix(balancer) fix ttl-0 records issues #83

Merged
merged 2 commits into from
Jan 24, 2020
Merged

fix(balancer) fix ttl-0 records issues #83

merged 2 commits into from
Jan 24, 2020

Conversation

Tieske
Copy link
Member

@Tieske Tieske commented Jan 23, 2020

  • the previous record was not properly detected as a ttl=0 record
    by checking on the __ttl0flag we now do

  • since the "fake" SRV record wasn't updated with a new expiry
    time the expiry-check-timer would keep updating that record
    every second

Fixes Kong issue Kong/kong#5477

src/resty/dns/balancer/base.lua Outdated Show resolved Hide resolved
* the previous record was not properly detected as a ttl=0 record
  by checking on the __ttl0flag we now do

* since the "fake" SRV record wasn't updated with a new expiry
  time the expiry-check-timer would keep updating that record
  every second

Fixes Kong issue Kong/kong#5477
@Tieske Tieske merged commit b24470d into master Jan 24, 2020
@Tieske Tieske deleted the ttl-zero-fix branch January 24, 2020 12:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants