Posted on 2006-03-20 19:35:21-08 by quielb
Mail::VRFY thread safe?

I wrote a threaded script to verify the address in my database. At first this was not a threaded script. But it was taking to long to process the addresses. So I added threads to speed up the process. But now my script seems to die at some random point after validating a random number of addresses. Each thread that is started calls Mail::VRFY and then the address is stored in a shared array based on the return value of Mail::VRFY.

I'm not sure if its Mail::VRFY that isn't thread safe and dies. The only clue I have at this point is on a Solaris 8 and Solaris 10 box is "Broken Pipe" that is printed to STDERR. The debian box prints nothing.

Any help would be great. Where should I be looking for why its breaking? Has anyone else used Mail::VRFY in a threaded script?

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.