[PECL-BUG] Bug #19071 [Opn]: MongoDB presist connection not stable
[email protected] ("tomasen at gmail dot com") 13 Oct 2010 16:15:55 -0000
| Newsgroups | php.pear.webmaster |
|---|---|
| Message-ID | <[email protected]> |
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)
+PHP Version: PHP 5.3.3
New Comment:
correct version info
Previous Comments:
------------------------------------------------------------------------
[2010-10-13 12:15:23] tomasen at gmail dot com
trying to fix typo
------------------------------------------------------------------------
[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