|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-13 12:15 UTC] tomasen at gmail dot com
[2010-10-13 12:15 UTC] tomasen at gmail dot com
[2012-02-26 08:50 UTC] rasmus@php.net
-Package: PECL bug system
+Package: mongo
[2012-11-29 17:40 UTC] derick@php.net
[2012-11-29 17:40 UTC] derick@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: derick
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 12 22:00:01 2025 UTC |
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)