diff options
| author | 2007-08-09 21:54:31 +0000 | |
|---|---|---|
| committer | 2007-08-09 21:54:31 +0000 | |
| commit | 2250bfb7b1ac4a4acdf66e1d4524e3a71c1cfefc (patch) | |
| tree | 93d85dbb145c275ad2cb0ed7811527fdc0651fcb /src/dns.cpp | |
| parent | Backport display glitch fix found by djGrrr, fixed by w00t (diff) | |
Merge in dns fix for bug found by djGrrr
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7695 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
| -rw-r--r-- | src/dns.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index fab9631b7..09fa97700 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -42,6 +42,7 @@ using irc::sockets::insp_inaddr; using irc::sockets::insp_ntoa; using irc::sockets::insp_aton; using irc::sockets::OpenTCPSocket; +using irc::sockets::NonBlocking; /** Masks to mask off the responses we get from the DNSRequest methods */ @@ -359,6 +360,7 @@ void DNS::Rehash() /* Initialize mastersocket */ int s = OpenTCPSocket(ServerInstance->Config->DNSServer, SOCK_DGRAM); this->SetFd(s); + NonBlocking(s); /* Have we got a socket and is it nonblocking? */ if (this->GetFd() != -1) |
