Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1220

SocketTimeoutMS elapses after disconnecting many loop queries executed

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: 2.2.33
    • Fix Version/s: None
    • Component/s: MongoDB 3.2
    • Labels:
      None
    • Environment:
      Windows Server 2012 RC

      Description

      No issue if there are only a few single requests or small size loops.
      but If you send many requests around the loop
      If pooSize and socketTimeOut are not appropriate
      After all requests have finished and socketTimeOut has passed
      There is a disconnected connection.
      I'm using keepAlive option

      • If the number of loops is large, and the number of socketTimeOutMS is large,
      • If the number of loops is large, recreate when poolSize becomes large.

      See this code

      for (let i = 0; i<1000; i++) {
      	collection.find({'_id':o_id}, function(err, cursor){
      	...
      	});
      }
       
      //Users.find all compledted and socketTimeOutMS elapses disconnected..
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            nagisatosanae nagisatosanae
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: