<rdar://problem/7481776> Suppress logs for "A non-blocking socket operation could... master
authorsherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Fri, 18 Dec 2009 05:49:06 +0000 (05:49 +0000)
committersherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Fri, 18 Dec 2009 05:49:06 +0000 (05:49 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6925 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSShared/dnssd_clientstub.c

index 5f45142..0b15a4b 100644 (file)
@@ -177,6 +177,11 @@ static int read_all(dnssd_sock_t sd, char *buf, int len)
                        {
                        // Should never happen. If it does, it indicates some OS bug,
                        // or that the mDNSResponder daemon crashed (which should never happen).
+#if defined(WIN32)
+                       // <rdar://problem/7481776> Suppress logs for "A non-blocking socket operation
+                       //                          could not be completed immediately"
+                       if (WSAGetLastError() != WSAEWOULDBLOCK)
+#endif
                        syslog(LOG_WARNING, "dnssd_clientstub read_all(%d) failed %ld/%ld %d %s", sd,
                                (long)num_read, (long)len,
                                (num_read < 0) ? dnssd_errno                 : 0,