Sorry to be completely dense, but how?
Here's what I've tried:
my $conn = MongoDB::Connection->new;
MongoDB::Connection::timeout = 90000; # this fails.
$conn->query_timeout = 90000; # this fails too.
my $db = $conn->get_database('mydb');
my $domain_coll = $db->get_collection('mycollection');
Thanks.
On Jul 30, 9:38 am, Kristina Chodorow <
krist...@10gen.com> wrote:
> You can turn off the timeout by setting it to -1.
>
> On Fri, Jul 30, 2010 at 12:27 PM, Fireproofsocks
> <
fireproofso...@gmail.com>wrote:
>
>
>
> > I've looked at this thread:
> >
http://groups.google.com/group/mongodb-user/browse_thread/thread/1863...
>
> > I'm running a command-line Perl script that consistently gets an
> > error:
>
> > recv timed out at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-
> > multi/MongoDB/Cursor.pm line 231.
>
> > MongoDB shell version: 1.4.3
> > Perl MongoDB version: 0.34
>
> > This is driving me nuts. Any pointers?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to
mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google
groups.com>
> > .