PHP - Manual: MongoDB\Driver\Exception\ConnectionTimeoutException
2024-12-21
(mongodb >= 1.0.0)
Thrown when the driver fails to establish a database connection within a specified time limit (connectTimeoutMS) or server selection fails (serverSelectionTimeoutMS).
官方地址:https://www.php.net/manual/en/class.mongodb-driver-exception-connectiontimeoutexception.php