Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11370

Confused by official mongodb documentation, what is socketTimeoutMS?

    XMLWordPrintableJSON

Details

    Description

      I found two different places with different explanation what does:

      socketTimeoutMS

      do.

      Here is written one explanation:

      The time in milliseconds to attempt a send or receive on a socket before the attempt times out. The default is never to timeout, though different drivers might vary. See the driver documentation.

      But here is given completely different explanation:

      The socketTimeoutMS sets the number of milliseconds a socket stays inactive after the driver has successfully connected before closing. If the value is set to 360000 milliseconds, the socket closes if there is no activity during a 30 seconds window.

      What does really

      socketTimeoutMS

      do?

      Attachments

        Activity

          People

            emet.ozar@mongodb.com Emet Ozar
            anatoly314 Anatoly Tarnavsky
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 2 days ago