Threading and Net/Http (Mechanize)

Does anyone ever see alot of errors like this:
Exception `Net::HTTPBadResponse’ at /usr/lib/ruby/1.8/net/http.rb:2022

  • wrong status line: SOME HTML CODE HERE

When using threads and mechanize? I’m relatively certain that this is
some bad behavior between threads and the net/http library, but does
anyone have any advice as far as the upper limit of threads you want
to run at once when using mechanize/nethttp?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs