From: Eric Jensen Date: 2009-11-19T02:35:09+09:00 Subject: Re: Asynchronous http POST? Ya, obviously this doesn't parallelize the connect, just the request. Unless you're doing SSL, the only blocking thing Net::HTTP.connect does is the underlying TCPSocket.open. If that is your bottleneck and you've already set open_timeout as low as you can go, then you'd have to patch deeper to get Net::HTTP to use connect_nonblock as per http://www.ruby-doc.org/core/classes/Socket.html#M002091 instead of TCPSocket.open Jaap Haagmans wrote: > Eric, it's great that you thought about this as I'm currently stuck on > this. > > However, your solution won't work. The http.start triggers the > Net::HTTP.start method which can take quite a while to complete. In > fact, it will take much longer than the actual request in cases where > the host wasn't queried for some time (and thus not cached). -- Posted via http://www.ruby-forum.com/.