From: bert hubert Date: Fri, 28 Jun 2013 09:41:45 +0000 (+0200) Subject: do our startup messages from main() so the threads don't write through eachother X-Git-Tag: rec-3.6.0-rc1~613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c890ea598a098b97f68e03b1d4860c6dd7ee89e;p=thirdparty%2Fpdns.git do our startup messages from main() so the threads don't write through eachother --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 67f935b85e..8376501f19 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -88,8 +88,6 @@ unsigned int g_numdownstreams; void* responderThread(void *p) { DownstreamState* state = (DownstreamState*)p; - if(g_verbose) - cout << "Added downstream server "<remote.toStringWithPort()<local.toStringWithPort()<local.sin4.sin_family; @@ -206,7 +201,8 @@ void* udpClientThread(void* p) int getTCPDownstream(DownstreamState** ds) { *ds = &getBestDownstream(); - cout<<"TCP connecting to downstream "<<(*ds)->remote.toStringWithPort()<remote.toStringWithPort()<remote.sin4.sin_family, SOCK_STREAM, 0); SConnect(sock, (*ds)->remote); return sock; @@ -473,6 +469,9 @@ try dss.idStates.resize(g_maxOutstanding); + if(g_verbose) + cout << "Added downstream server "<udpFD, IPPROTO_IPV6, IPV6_V6ONLY, 1); } SBind(cs->udpFD, cs->local); + if(g_verbose) + cout<<"Listening on "<local.toStringWithPort()<