one socket opened per send
-
geir
Sorry - formatting for code was bad. Code is here :
-
CodeMonkeyKevin
- Milestone order changed from 0 to 0
You wouldn't want to do this without some sort of thread queue or thread management as under heavy loads the ruby vm will not hold up with N# of Threads spawned. The better way is and I already started this is moving away from IO blocking http client RestClient/Curb/Net::Http. I started to break up the http calls in to and generic interface. RestAPI generic module calls the http client adapter. I just did this for curb(libcurl) http://github.com/CodeMonkeyKevin/couchrest but the same can be done for EventMachine.http, much like em-couchdb where the calls are not IO blocking.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.