in reply to Perl threads to open 200 http connections

You're missing the $thread->join right after the for statement. That's mandatory otherwise the program exit without waiting threads to finish.

In this case you're creating one thread + one proc for each wget session. One approach I'd try is to use Coro::LWP or AnyEvent::HTTP for non-blocking I/O, that should scale up better than the threaded approach

Replies are listed 'Best First'.
Re^2: Perl threads to open 200 http connections
by BrowserUk (Patriarch) on Aug 02, 2010 at 15:28 UTC
    One approach I'd try is to use Coro::LWP

    I'd like to try that. Perhaps you could post a sample?

Re^2: Perl threads to open 200 http connections
by BrowserUk (Patriarch) on Aug 03, 2010 at 10:31 UTC

    That's what I thought. I can't get the examples to work either.