Hi again
The stock gethostby* name resolution lookup routines in perl are making blocking function calls. Does any one know of any module that uses the non blocking (reentrant) gethostby*_r function calls? NET::DNS blocks as well :-( This is of particular interest in environments where name resolution can take several minutes to resolve, causing a hang.
The normal catching of the alarm signal does not occur as it is a single op. This forces us at times to use unsafe signal handling which is not at all preferable.
I am curious as to why Perl doesn't use the reentrant gethostby*_r() if they are available... does anyone have any idea why?
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
In reply to DNS lookups & signals by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |