From: Bert Hubert Date: Tue, 21 Aug 2007 17:07:33 +0000 (+0000) Subject: fix up sub-second waits for data - important for dnsreplay. Bug found by Augie Schwer X-Git-Tag: rec-3.1.7.1~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b3d43304a4097296095f83797d9d40583fbabd3;p=pdns fix up sub-second waits for data - important for dnsreplay. Bug found by Augie Schwer git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1088 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/misc.cc b/pdns/misc.cc index 0a28281f3..75163a906 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -288,7 +288,7 @@ int waitForRWData(int fd, bool waitForRead, int seconds, int useconds) else pfd.events=POLLOUT; - ret = poll(&pfd, 1, seconds * 1000); + ret = poll(&pfd, 1, seconds * 1000 + useconds/1000); if ( ret == -1 ) errno = ETIMEDOUT;