]> granicus.if.org Git - pdns/commitdiff
Fixed last parts of ticket #13 - the parts I did not consider a bug *were* in fact
authorBert Hubert <bert.hubert@netherlabs.nl>
Sun, 7 Nov 2004 11:16:49 +0000 (11:16 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sun, 7 Nov 2004 11:16:49 +0000 (11:16 +0000)
a bug hehe.

Thanks to Wichert Akkerman for stubbornly reporting this bug until I got
around to fixing it.

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@262 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdns_recursor.cc

index a7d8c656f7930e3495ecacd407f289c6979c2976..8c090d4ad72e2e8a2edb70734d0070858c342011 100644 (file)
@@ -1,6 +1,6 @@
 /*
     PowerDNS Versatile Database Driven Nameserver
-    Copyright (C) 2002  PowerDNS.COM BV
+    Copyright (C) 2004  PowerDNS.COM BV
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -238,6 +238,8 @@ void makeClientSocket()
   }
   if(!tries)
     throw AhuException("Resolver binding to local socket: "+stringerror());
+
+  Utility::setNonBlocking(d_clientsock);
 }
 
 void makeTCPServerSocket()