mongo-php-driver icon indicating copy to clipboard operation
mongo-php-driver copied to clipboard

Is it difficult adding a close() method?

Open jimmybytes opened this issue 6 years ago • 1 comments

I think the library should be open let's the end user to choose the behavior what they want I think users should be free

jimmybytes avatar Mar 17 '20 04:03 jimmybytes

As per previous comments in https://github.com/mongodb/mongo-php-driver/issues/393#issuecomment-245638805, this functionality is not available in the driver. If you want to close all connections from a process, terminating this process will close any open connections. Note that when using FPM, this means restarting FPM workers.

alcaeus avatar Mar 17 '20 09:03 alcaeus