<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:41:23 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-2018] 2.3.0 driver does not honor ConnectTimeout setting</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2018</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I setting the ConnectTimeout property with the following code:&lt;/p&gt;

&lt;p&gt;MongoUrl mongoUrl = new MongoUrl(strMongoDBAtlasUri);&lt;br/&gt;
            var settings = MongoClientSettings.FromUrl(mongoUrl);&lt;br/&gt;
            settings.ConnectTimeout = new System.TimeSpan(0, 0, 5);&lt;br/&gt;
            var client = new MongoClient(settings);&lt;/p&gt;

&lt;p&gt;while using a MongoDB Atlas URI (strMongoDBAtlasUri above).&lt;/p&gt;

&lt;p&gt;I purposely provide incorrect user credentials in the Uri, but the exception is still thrown after 30 seconds (default value) instead of the 5 seconds I specified above.&lt;/p&gt;

&lt;p&gt;The error message is the following:&lt;/p&gt;

&lt;p&gt;Message	&quot;A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = WritableServerSelector, LatencyLimitingServerSelector&lt;/p&gt;
{ AllowedLatencyRange = 00:00:00.0150000 }
&lt;p&gt; }. Client view of cluster state is { ClusterId : \&quot;1\&quot;, ConnectionMode : \&quot;ReplicaSet\&quot;, Type : \&quot;ReplicaSet\&quot;, State : \&quot;Disconnected\&quot;, Servers : [{ ServerId: \&quot;&lt;/p&gt;
{ ClusterId : 1, EndPoint : \&quot;Unspecified/cluster0-shard-00-00-nebpx.mongodb.net:27017\&quot; }
&lt;p&gt;\&quot;, EndPoint: \&quot;Unspecified/cluster0-shard-00-00-nebpx.mongodb.net:27017\&quot;, State: \&quot;Disconnected\&quot;, Type: \&quot;Unknown\&quot;, HeartbeatException: \&quot;MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. --&lt;del&gt;&amp;gt; MongoDB.Driver.MongoAuthenticationException: Unable to authenticate using sasl protocol mechanism SCRAM-SHA-1. ---&amp;gt; MongoDB.Driver.MongoCommandException: Command saslStart failed: Authentication failed..\r\n   at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.ProcessReply(ConnectionId connectionId, ReplyMessage`1 reply)\r\n   at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.&amp;lt;ExecuteAsync&amp;gt;d_&lt;em&gt;11.MoveNext()\r\n&lt;/del&gt;-- End of stack trace from previous location where exception was thrown --&lt;del&gt;\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at MongoDB.Driver.Core.Authentication.SaslAuthenticator.&amp;lt;AuthenticateAsync&amp;gt;d&lt;/em&gt;&lt;em&gt;7.MoveNext()\r\n   &amp;#8212; End of inner exception stack trace ---\r\n   at MongoDB.Driver.Core.Authentication.SaslAuthenticator.&amp;lt;AuthenticateAsync&amp;gt;d&lt;/em&gt;_7.MoveNext()\r\n&lt;/del&gt;-- End of stack trace from previous location where exception was thrown ---\r\n   at &lt;/p&gt;</description>
                <environment>Windows Server 2012, Visual Studio 2017 Preview, Azure Functions</environment>
        <key id="405843">CSHARP-2018</key>
            <summary>2.3.0 driver does not honor ConnectTimeout setting</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="raphael.londner">Raphael Londner</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Jul 2017 02:19:55 +0000</created>
                <updated>Fri, 27 Oct 2023 13:25:06 +0000</updated>
                            <resolved>Wed, 19 Jul 2017 20:44:30 +0000</resolved>
                                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1626809" author="raphael.londner" created="Wed, 19 Jul 2017 20:36:21 +0000"  >&lt;p&gt;I have verified that ServerSelectiontimeout works and should be used in this case. This ticket can be closed now.&lt;/p&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|hr9u87:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1810">C# Sprint 56</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>