mirror of
https://github.com/znc/znc.git
synced 2026-06-12 17:54:59 +02:00
0bdb18a427
When a DNS thread is done with its lookup, instead of existing immediately, it now waits for another DNS lookup to do instead. This avoids the cost of starting/stopping threads all the time. To make sure that (for whatever reason) the number of waiting threads doesn't get too high, threads exit if there are more than two DNS threads idling around with nothing to do. Fixes #132. Signed-off-by: Uli Schlachter <psychon@znc.in>