From: Apple Date: Tue, 2 May 2006 16:16:08 +0000 (+0000) Subject: Libinfo-222.3.3.tar.gz X-Git-Tag: mac-os-x-1047ppc^0 X-Git-Url: https://git.saurik.com/apple/libinfo.git/commitdiff_plain/7afb27bdc8204a773cbaedfa4838e172e3cb7322 Libinfo-222.3.3.tar.gz --- diff --git a/mdns.subproj/dnssd_clientstub.c b/mdns.subproj/dnssd_clientstub.c index 4e7b84b..cd6cb55 100644 --- a/mdns.subproj/dnssd_clientstub.c +++ b/mdns.subproj/dnssd_clientstub.c @@ -28,15 +28,25 @@ Change History (most recent first): $Log: dnssd_clientstub.c,v $ +Revision 1.20.68.3 2006/05/02 16:16:08 majka +Make NumTries unsigned. + +Revision 1.20.68.2 2006/05/01 21:41:19 majka +Additional change (make NumTries static) for 4374646. +SUTiLondon Libinfo-222.3.3 + +Revision 1.20.68.1 2006/05/01 16:22:28 majka +Libinfo-222_3_2 is equivalent to SUTiLondon8J109 Libinfo-222.2 + +Revision 1.20.64.1 2006/04/27 21:19:51 majka +Bug #: 4374646 + Revision 1.20 2005/02/03 00:39:05 majka Integrated 3942900 Revision 1.19.4.1 2005/02/02 00:47:40 ksekar dnd-sd shows the wrong port numbers -Revision 1.19 2004/12/23 23:10:59 majka -*** empty log message *** - Revision 1.18.8.1 2004/12/23 17:32:56 ksekar Rendevzous calls leak sockets if mDNSResponder is not running @@ -298,7 +308,7 @@ static DNSServiceRef connect_to_server(void) { dnssd_sockaddr_t saddr; DNSServiceRef sdr; - int NumTries = 0; + static unsigned int NumTries = 0; #if defined(_WIN32) if (!g_initWinsock) @@ -335,7 +345,7 @@ static DNSServiceRef connect_to_server(void) // daemon is still coming up. Rather than fail here, we'll wait a bit and try again. // If, after ten seconds, we still can't connect to the daemon, // then we give up and return a failure code. - if (++NumTries < 10) + if (++NumTries < 3) sleep(1); // Sleep a bit, then try again else {