|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
perl threads exiting abnormallyby srchulo (Acolyte) |
| on Nov 18, 2012 at 09:22 UTC ( #1004387=perlquestion: print w/ replies, xml ) | Need Help?? |
|
srchulo has asked for the
wisdom of the Perl Monks concerning the following question:
I'm using perl's threads module with a simple crawler I'm working on so I can download pages in parallel. Ocasionally, I get error messages like these:
When I run the script linearly without threads (or if I use fork() instead of threading), I do not encounter these errors. And these errors almost seem like they are from the LWP::UserAgent module that I am using, but they do not seem like they should be causing the threads to exit abnormally; they seem like errors that would be help in my HTTP::Response object. Is there some extra precaution I have to take while using perl's threads, or something I'm missing? Thanks! UPDATEI have tracked down the source of these abnormal terminations, and it does seem to be whenever I make a request using LWP::UserAgent. If I remove the method call to download the webpage, then the errors stop. Here is a test script that produces the error:
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||