Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 43765
Status: resolved
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: howard [...] cohtech.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: loop_once with no timeout does a poll
The man page says that loop_once called without a timeout will stall the thread/process until there is a request. The implementation converts such a call into a poll with an immediate return if there is not traffic. The second line of loop_once defaults the timeout to 0 if it is undefined. This needs to be handle by leaving undefined and fixing the uses of the timeout parameter later on to cope with undefined.
This is one of the kind of bugs where I cannot remember why we ever set that value to 0. I can also not see any logical explanation further on in the code. I removed the offending line. The IO::Select can_read method blocks with the undefined value, as one would expect.