in reply to Re^3: HTTP:Async weirdness
in thread HTTP:Async weirdness

Good question, and HUGE thanks for putting that code through your testing. Suppose it processes like 50 requests. I'll end up with about 65-70 written to the DB when all is said and done. Many will have either blank html_source, and many will have a blank page_url. Some entries will be doubled . . . In fact this happens even with lower numbers of requests. The problem seems to be exasperated by sites that timeout or are slow. The code seems to want to grab the results of the request in the middle of the request. I only want enough blocking going on so that  my $content = $response->decoded_content; isn't picking the results off prematurely. There has to be a way to do that. -S