Connection to mongodb database is hanging - need to implement a timeout mechanism

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.5
    • Component/s: Internal Client
    • None
    • Environment:
      Windows 7 x64, Windows Server 2008 R2
    • Windows
    • Hide

      Install MongoDb 2.0.5 32bits version on a machine as a windows service.
      In an admin console execute this command:
      netsh int tcp set global autotuninglevel=experimental
      After this, type command: netsh int tcp show
      Verify to have "Receive Window Auto-Tuning Level : experimental"
      Try to start mongo.exe client without any parameters, to connect to database. Mongo.exe will hang.
      You need to implement a timeout algorithm to close the client and to give an appropriate message if no connection can be made.

      I attached mongod.log and a capture file to see the packets sent.

      Show
      Install MongoDb 2.0.5 32bits version on a machine as a windows service. In an admin console execute this command: netsh int tcp set global autotuninglevel=experimental After this, type command: netsh int tcp show Verify to have "Receive Window Auto-Tuning Level : experimental" Try to start mongo.exe client without any parameters, to connect to database. Mongo.exe will hang. You need to implement a timeout algorithm to close the client and to give an appropriate message if no connection can be made. I attached mongod.log and a capture file to see the packets sent.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      MongoDB it is installed as a windows service an a machine.
      The command that I used to install the service is : "C:\Program Files (x86)\Ixia\ResourceManager\Mongodb\bin\mongod.exe" --journal --dbpath "C:\ProgramData\Ixia\ResourceManager\Storage\Database" --logpath "C:\ProgramData\Ixia\ResourceManager\Logs\mongod.log" --service --logappend"

      When Windows network setting: "Receive Window Auto-Tuning Level" it is set to "experimental" value, no connections can be made to database using mongo.exe client. Mongo.exe client is hanging.

        1. loopback_mongoexe.pcap
          1 kB
          Gabriel Badescu
        2. mongod.log
          2 kB
          Gabriel Badescu

            Assignee:
            David Hows (Inactive)
            Reporter:
            Gabriel Badescu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: