Skip to content

Conversation

@rgacogne
Copy link
Member

@rgacogne rgacogne commented Jul 5, 2018

Short description

I finally managed to reliably reproduce the "negative outstanding counter" issue by setting setMaxUDPOutstanding() to a very low value and overloading the backend, causing dnsdist to do a lot of "active state reuses".
This PR tries harder to detect whether another thread has been reusing the state, making sure that we don't decrement the outstanding counter twice.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@rgacogne rgacogne modified the milestones: dnsdist-1.3.x, dnsdist-1.3.1 Jul 5, 2018
@rgacogne rgacogne merged commit e01dbbc into PowerDNS:master Jul 9, 2018
@rgacogne rgacogne deleted the dnsdist-reuse-race branch July 9, 2018 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant