Speeding Up Net::HTTP, OpenURI or Any Other TCPSocket Offspring # Only if you’re doing lots of requests amongst threads and you notice that the opening of the socket is blocking everything. require 'resolv-replace' And if you are, then it’s the Matz’ pajamas. From his own tongue: I’m sorry if you feel offended, it’s not my intention. But if getaddrinfo() on your system does not work as you expect,