MongoNetworkError: read ECONNRESET after upgrade mongdb nodejs driver to 6 or above

I don’t have any idea why a connection is created but not ready. And why driver try to close an un-ready connection and raise exceptions.