dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

MongoConnectionException> <MongoCursorException::getHost
[edit] Last updated: Fri, 28 Jun 2013

view this page in

The MongoCursorTimeoutException class

(PECL mongo >= 1.0.0)

Introduction

Caused by a query timing out. You can set the length of time to wait before this exception is thrown by calling MongoCursor::timeout() on the cursor or setting MongoCursor::$timeout. The static variable is useful for queries such as database commands and MongoCollection::findOne(), both of which implicitly use cursors.

Class synopsis

MongoCursorTimeoutException extends MongoCursorException {
}


add a note add a note User Contributed Notes MongoCursorTimeoutException - [1 notes]
up
0
Salocin.TEN
10 months ago
If you wish to turn off timeouts, do...

MongoCursor::$timeout = -1;

 
show source | credits | stats | sitemap | contact | advertising | mirror sites