We are using driver PyMongo to connect python with mongodb it is working fine but, throws "Connection Timedout Exception" for long running scripts.
Mongodb connectTimeoutMS
defaults to 30 seconds.
It defaults to 20 seconds in pymongo.
You may want to increase the timeout, or have a look at optimizing the heavy scripts.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments