<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:46:55 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-4007] maxIdleTimeMS does not work as expect</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4007</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In my project, I defined connectionString consists of MaxIdleTimeMS Property but some time max connection Idle time out&#160;does not work correctly as expect.&lt;/p&gt;

&lt;p&gt;below is describle of test pattern i have executed:&lt;/p&gt;

&lt;p&gt;context:&lt;/p&gt;

&lt;p&gt;current connections number: 1&lt;br/&gt;
when I setting&#160;MaxIdleTimeMS=0 and operation screen to establish connection to DB&lt;/p&gt;

&lt;p&gt;the curren connections number still 1 (as expect)&lt;/p&gt;

&lt;p&gt;when I setting&#160;&#160;MaxIdleTimeMS=5&#160;and operation screen to establish connection to DB&lt;/p&gt;

&lt;p&gt;the curren connections number : 2 (increase 1)&#160;&lt;br/&gt;
but I have to waiting about 10 minutes for connection close (current connections number:1)&lt;/p&gt;

&lt;p&gt;I don&apos;t know whether somewhere in C# driver source code has overwrite MaxIdleTimeMS value or not but, I can&apos;t accurately adjust the&#160;MaxIdleTimeMS number as expect.&lt;/p&gt;

&lt;p&gt;If that is about my mistake, can someone give me some comment pls?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1958729">CSHARP-4007</key>
            <summary>maxIdleTimeMS does not work as expect</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13202">Works as Designed</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="luan92qnn@gmail.com">A B</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Jan 2022 12:50:17 +0000</created>
                <updated>Fri, 27 Oct 2023 13:24:42 +0000</updated>
                            <resolved>Thu, 13 Jan 2022 16:59:13 +0000</resolved>
                                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4287810" author="JIRAUSER1264233" created="Wed, 12 Jan 2022 11:21:11 +0000"  >&lt;p&gt;@Robert&lt;/p&gt;

&lt;p&gt;I understand.&lt;/p&gt;

&lt;p&gt;Thank you very much for your quick confirmation.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="4279096" author="rstam" created="Thu, 6 Jan 2022 18:42:21 +0000"  >&lt;p&gt;I have tried to reproduce what you have reported and all appears to be working properly, but some explanations are in order.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The driver keeps 2 dedicated connections to each server open permanently. One is used to monitor the status of the server, and the other is used to measure the network round trip time to the server&lt;/li&gt;
	&lt;li&gt;Idle connections are removed from the connection pool via a background maintenance task that runs about once per minute&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;So it could take up to a minute for an idle connection to be removed from the connection pool. However, even though an idle connection might not be removed from the connection pool for up to a minute, an idle connection will never be used by the application. If the application needs a connection from the connection pool only non-idle connections will be returned.&lt;/p&gt;</comment>
                            <comment id="4277785" author="JIRAUSER1264233" created="Thu, 6 Jan 2022 04:48:46 +0000"  >&lt;p&gt;@Robert&lt;/p&gt;

&lt;p&gt;I&apos;m using&#160;MongoDB.Driver.Core, Version=2.13.2.0.&lt;/p&gt;

&lt;p&gt;I determine the current number connections by executing db.ServerStatus() command in database console.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="4277578" author="rstam" created="Wed, 5 Jan 2022 23:37:20 +0000"  >&lt;p&gt;In order to investigate your questions please provide the following information:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;What version of the C# driver are you using?&lt;/li&gt;
	&lt;li&gt;How are you determining the number of current connections?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzz57z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>