Closed panthomakos closed 7 years ago
Net::HTTP, in Ruby's standard library, is not threadsafe. The issue is easy to sidestep by creating a new Net::HTTP object for every lookup. The overhead of creating a new object compared to the network lookup call is trivial.
Net::HTTP
Net::HTTP
, in Ruby's standard library, is not threadsafe. The issue is easy to sidestep by creating a newNet::HTTP
object for every lookup. The overhead of creating a new object compared to the network lookup call is trivial.