How to write the sockettimeout configuration of mongodb 2.7.3?
仅有的幸福
仅有的幸福 2017-05-02 09:23:44
0
2
683

How to write the sockettimeout configuration of mongodb 2.7.3?

仅有的幸福
仅有的幸福

reply all(2)
漂亮男人

Are you referring to 2.7, the driver version or the server version?

Driver

If it is a driver, which language is the driver? On the driver side, maintaining the connection for a long time causes resource leakage. The configuration that should be used is maxTimeMS. socketTimeout是绝对不应该使用的参数,虽然从客户端看是连接断开了,但在服务器端可能因为收不到FIN

Server

If it is a server, the odd-numbered version is the development version and is not recommended. And this is also a very old beta version, so there’s not much point in playing it. Please find 3.5.1 for the new beta version. If you don’t want to try something new, it is strongly recommended that you use the official version. The latest official version is 3.4.1.

大家讲道理

It seems that the mongodb server cannot be configured. It needs to be configured on the client side. For client configuration, it depends on which language and package you are using. Different packages are configured differently.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template