]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
handle NOTCONN.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 14 Apr 2009 13:35:10 +0000 (13:35 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 14 Apr 2009 13:35:10 +0000 (13:35 +0000)
git-svn-id: file:///svn/unbound/trunk@1599 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
util/netevent.c

index 1a17e560dc9878e82ed922d3e6d22745672d2438..fc21eba7915c2b8f811300f386499480587a9c7d 100644 (file)
@@ -2,6 +2,7 @@
        - bug #245: fix munin plugin, perform cleanup of stale lockfiles.
        - makedist.sh; better help text.
        - cache-min-ttl option and tests.
+       - mingw detect error condition on TCP sockets (NOTCONN).
 
 9 April 2009: Wouter
        - Fix for removal of RSASHA256_NSEC3 protonumber from ldns.
index 7989f9c2fa21cbd671477a770ec29cd0385e0f67..25215a3bb62e2af681236380c7120a95956e59ee 100644 (file)
@@ -876,6 +876,8 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
                                return 1;
                        log_err("tcp writev: %s", strerror(errno));
 #else
+                       if(WSAGetLastError() == WSAENOTCONN)
+                               return 1;
                        if(WSAGetLastError() == WSAEINPROGRESS)
                                return 1;
                        if(WSAGetLastError() == WSAEWOULDBLOCK) {