incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Macdonald <macfisher...@gmail.com>
Subject Re: all_dbs_active - what should an app do when it gets this?
Date Wed, 25 Nov 2009 22:46:49 GMT
On Wed, Nov 25, 2009 at 2:23 PM, Paul Davis <paul.joseph.davis@gmail.com> wrote:
> IANAPM, but if $dbh is holding an open connection you could very well
> trigger this quite easily. Can you try replacing the sleep($secs) with
> something like $dbh->close()?

I don't believe Net::CouchDB has a close method.

> Any easy way to check this is to watch
> `netstat -tap tcp` and see if the number of sockets on either machine
> is growing monotonically.

I did this and it simply held one tcp connection open, which is what I
suspected would happen since the connection is made outside the loop.


-- 
Jeff Macdonald
Ayer, MA

Mime
View raw message