search

Home  >  Q&A  >  body text

How to write the sockettimeout configuration of mongodb 2.7.3?

How to write the sockettimeout configuration of mongodb 2.7.3?

仅有的幸福仅有的幸福2874 days ago705

reply all(2)I'll reply

  • 漂亮男人

    漂亮男人2017-05-02 09:25:44

    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.

    reply
    0
  • 大家讲道理

    大家讲道理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.

    reply
    0
  • Cancelreply