Bug #19071 [Opn]: MongoDB presist connection not stable

From: Date: Wed, 13 Oct 2010 16:15:23 +0000
Subject: Bug #19071 [Opn]: MongoDB presist connection not stable
References: 1  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-6762@lists.php.net to get a copy of this message
Edit report at http://pecl.php.net/bugs/bug.php?id=19071&edit=1 ID: 19071 User updated by: tomasen at gmail dot com Reported By: tomasen at gmail dot com Status: Open Id: 19071 Type: Bug Package: Bug System Operating System: FreeBSD 7.1 PHP Version: Trunk SVN-2010-10-13 (dev) New Comment: trying to fix typo Previous Comments: ------------------------------------------------------------------------ [2010-10-13 12:13:49] tomasen at gmail dot com Description: ------------ In fact I'm using PHP 5.3.3 persistent connections to mongodb doesn't seem to be stable enough. after few days, I encounter exception as "couldn't send query" and nothing works with mongodb. the serious problem is, the connect doesn't seems to be able to fix or reconnect by itself. After I change the persist connect key. or switch to non-persist connection, everything works. maybe lack of automatic reconnection once break? or meybe there can be too many opened persist connection to mongodb and exceed the limit Reproduce code: --------------- $m = new Mongo("mongodb:///tmp/mongodb-27017.sock", array("persist" => "anykey")); // anything operate data Expected result: ---------------- PHP Fatal error: Uncaught exception 'MongoCursorException' with message 'couldn't send query.' in /data/www/2006/counter/jsc.php:39 Stack trace: #0 /data/www/2006/counter/jsc.php(39): MongoCollection->findOne(Array, Array) ------------------------------------------------------------------------ -- Edit this bug report at http://pecl.php.net/bugs/bug.php?id=19071&edit=1

« previous php.pear.webmaster (#6762) next »