Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4007

maxIdleTimeMS does not work as expect

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Connectivity
    • None

      In my project, I defined connectionString consists of MaxIdleTimeMS Property but some time max connection Idle time out does not work correctly as expect.

      below is describle of test pattern i have executed:

      context:

      current connections number: 1
      when I setting MaxIdleTimeMS=0 and operation screen to establish connection to DB

      the curren connections number still 1 (as expect)

      when I setting  MaxIdleTimeMS=5 and operation screen to establish connection to DB

      the curren connections number : 2 (increase 1) 
      but I have to waiting about 10 minutes for connection close (current connections number:1)

      I don't know whether somewhere in C# driver source code has overwrite MaxIdleTimeMS value or not but, I can't accurately adjust the MaxIdleTimeMS number as expect.

      If that is about my mistake, can someone give me some comment pls?

       

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            luan92qnn@gmail.com A B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: