But, in what kind of situations the driver assumes that the program
has exit? Because I have seen lots an lots of opened and closed
connections but my program is a webservice, it never ends.
Is there some kind of time out? Or even better, is there a way to not
close the connections until the webservice disposes or something like
that?
Thanks a lot!
On 28 feb, 15:32, Robert Stam <
rob...@10gen.com> wrote:
> The driver maintains a connection pool and handles opening and closing
> connections as necessary.
>
> The only reason to call MongoServer.Disconnect is if you know you won't be
> doing any more MongoDB calls and would like to close all connections
> immediately. Otherwise the connections will be closed when your program
> exits.
>