How to write the sockettimeout configuration of mongodb 2.7.3?
漂亮男人2017-05-02 09:25:44
Are you referring to 2.7, the driver version or the server version?
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
大家讲道理2017-05-02 09:25:44
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.