On Sun, Jul 26, 2009 at 10:07 PM, Tommy Chheng<tommy.chh...@gmail.com> wrote: > On Jul 26, 2009, at 5:34 PM, Brian Candler wrote: > >> On Fri, Jul 24, 2009 at 05:23:44PM -0700, Tommy Chheng wrote: >>> >>> You are right, there was about 30 of these: >>> tcp 0 0 localhost.localdo:60607 localhost.localdom:5984 >>> TIME_WAIT - >> >> If there are only TIME_WAIT connections then that's pretty normal. It's a >> consequence of RestClient opening a separate TCP/HTTP connection for each >> request. I don't think it should cause the couchdb process to stop >> accepting further connections. > > Any other thoughts why CouchDB would give a connection refused error? > I'm doing an ajax call so it's sending 10 requests at a time. I would think > the couchdb server could handle 10 at a time but it only returns back 5 or > so responses successfully.
I've found on my Mac it's hard to get Ruby to open more than about 10 concurrent requests. There's also normally a limit to the # of requests an Ajax application can make at the same time. Maybe you're running into something like this? Chris -- Chris Anderson http://jchrisa.net http://couch.io