From: GitHub <no...@gi...> - 2012-02-14 19:30:40
|
Branch: refs/heads/master Home: https://github.com/znc/znc Commit: 0bdb18a427b16bfb6808a38951a7ce1c0ebebde3 https://github.com/znc/znc/commit/0bdb18a427b16bfb6808a38951a7ce1c0ebebde3 Author: Uli Schlachter <ps...@zn...> Date: 2012-02-14 (Tue, 14 Feb 2012) Changed paths: M include/znc/Socket.h M src/Socket.cpp Log Message: ----------- Threaded DNS: Use a thread pool 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 <ps...@zn...> |