Judson Lester wrote:
> On Wed, Feb 20, 2008 at 5:24 PM, MenTaLguY <mental / rydia.net> wrote:
>>  'index' is indeed independent here; @agent being shared, however, is
>>  very likely to cause problems.  As far as I know, WWW::Mechanize agents
>>  are not safe for use by multiple threads.  Each thread will need its
>>  own agent.
> 
> That agrees completely with my direct experience.  WWW::Mechanize is,
> sadly, not threadsafe - it reuses a buffer for each request, and if
> you start  a new request before another completes, the new request
> will clobber the input buffer.  I gladly share my painfully won
> experience with you.
> 
> Judson

that seemed to make a big difference...also, do you think I need to put 
a mutex around the 'out.puts' call (ie file output?)
-- 
Posted via http://www.ruby-forum.com/.