<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:41:01 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-1908] Cannot connect to remote server when running on Mono on Windows</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1908</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Works fine running on Mono 4.6.2 on Ubuntu linux&lt;br/&gt;
Works fine running on .NET Framework on Windows&lt;/p&gt;

&lt;p&gt;Can connect to local server when running on Mono on Windows&lt;/p&gt;

&lt;p&gt;When connecting to a remote server when running Mono on Windows:&lt;/p&gt;

&lt;p&gt;Unhandled Exception:&lt;br/&gt;
System.TimeoutException: 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;Automatic&quot;, Type : &quot;Unknown&quot;, State : &quot;Disconnected&quot;, Servers : [{ ServerId: &quot;&lt;/p&gt;
{ ClusterId : 1, EndPoint : &quot;Unspecified/ds058508.mlab.com:58508&quot; }
&lt;p&gt;&quot;, EndPoint: &quot;Unspecified/ds058508.mlab.com:5850&lt;br/&gt;
8&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot; }] }.&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, MongoDB.Driver.Core.Clusters.ClusterDescription description) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00013&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster+WaitForDescriptionChangedHelper.HandleCompletedTask (System.Threading.Tasks.Task completedTask) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00009&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, MongoDB.Driver.Core.Clusters.ClusterDescription description, System.Threading.Tasks.Task descriptionChangedTask, System.TimeSpan timeout, System.Threading.CancellationToken cancellationToken) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00021&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster.SelectServer (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, System.Threading.CancellationToken cancellationToken) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00047&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; FATAL UNHANDLED EXCEPTION: System.TimeoutException: 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;Automatic&quot;, Type : &quot;Unknown&quot;, State : &quot;Disconnected&quot;, Servers : [{ ServerId: &quot;&lt;/p&gt;
{ ClusterId : 1, EndPoint : &quot;Unspecified/ds058508.mlab.com:58508&quot; }
&lt;p&gt;&quot;, EndPoint:&lt;br/&gt;
&quot;Unspecified/ds058508.mlab.com:58508&quot;, State: &quot;Disconnected&quot;, Type: &quot;Unknown&quot; }] }.&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, MongoDB.Driver.Core.Clusters.ClusterDescription description) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00013&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster+WaitForDescriptionChangedHelper.HandleCompletedTask (System.Threading.Tasks.Task completedTask) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00009&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster.WaitForDescriptionChanged (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, MongoDB.Driver.Core.Clusters.ClusterDescription description, System.Threading.Tasks.Task descriptionChangedTask, System.TimeSpan timeout, System.Threading.CancellationToken cancellationToken) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00021&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;br/&gt;
  at MongoDB.Driver.Core.Clusters.Cluster.SelectServer (MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector selector, System.Threading.CancellationToken cancellationToken) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x00047&amp;#93;&lt;/span&gt; in &amp;lt;0763d4a07cbf42da8f075cc7041f4302&amp;gt;:0&lt;/p&gt;


&lt;p&gt;Example code:&lt;/p&gt;

&lt;p&gt;using System;&lt;br/&gt;
using MongoDB.Bson.Serialization;&lt;br/&gt;
using MongoDB.Bson.Serialization.IdGenerators;&lt;br/&gt;
using MongoDB.Driver;&lt;br/&gt;
using Newtonsoft.Json;&lt;/p&gt;

&lt;p&gt;namespace ConsoleApplication1&lt;br/&gt;
{&lt;br/&gt;
    internal class Program&lt;br/&gt;
    {&lt;br/&gt;
        public static void Main(string[] args)&lt;br/&gt;
        {&lt;br/&gt;
            var mongourl = &quot;&amp;lt;CONNECTION STRING&amp;gt;&quot;;&lt;br/&gt;
            var dbName = &quot;&amp;lt;DATABASE NAME&amp;gt;&quot;;&lt;/p&gt;

&lt;p&gt;            BsonSerializer.RegisterIdGenerator(&lt;br/&gt;
                typeof(string),&lt;br/&gt;
                StringObjectIdGenerator.Instance&lt;br/&gt;
            );&lt;/p&gt;

&lt;p&gt;            var clientSettings =&lt;br/&gt;
                MongoClientSettings.FromUrl(new MongoUrl(mongourl));&lt;/p&gt;

&lt;p&gt;            var mongoClient = new MongoClient(clientSettings);&lt;br/&gt;
            var db = mongoClient.GetDatabase(dbName);&lt;/p&gt;

&lt;p&gt;            var collection = db.GetCollection&amp;lt;TestClass&amp;gt;(&quot;test&quot;);&lt;br/&gt;
            var test = new TestClass &lt;/p&gt;
{Name = &quot;Test&quot;}
&lt;p&gt;;&lt;br/&gt;
            collection.InsertOne(test);&lt;/p&gt;

&lt;p&gt;            var result = collection.Find(Builders&amp;lt;TestClass&amp;gt;.Filter.Empty).ToList();&lt;/p&gt;

&lt;p&gt;            Console.WriteLine(JsonConvert.SerializeObject(result));&lt;br/&gt;
            Console.WriteLine(&quot;Press any key to continue...&quot;);&lt;br/&gt;
            Console.ReadKey();&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    public class TestClass&lt;br/&gt;
    {&lt;br/&gt;
        public string Id &lt;/p&gt;
{ get; set; }&lt;br/&gt;
        public string Name { get; set; }
&lt;p&gt;    }&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;</description>
                <environment>Windows 7 mono 4.6.2</environment>
        <key id="351829">CSHARP-1908</key>
            <summary>Cannot connect to remote server when running on Mono on Windows</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="bradleylandis">Bradley Landis</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 Feb 2017 22:41:47 +0000</created>
                <updated>Fri, 27 Oct 2023 13:25:10 +0000</updated>
                            <resolved>Thu, 2 Mar 2017 14:54:19 +0000</resolved>
                                    <version>2.3</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1514380" author="rstam" created="Thu, 2 Mar 2017 14:54:12 +0000"  >&lt;p&gt;We no longer support running on Mono as of version 2.0.&lt;/p&gt;</comment>
                            <comment id="1492569" author="bradleylandis" created="Mon, 6 Feb 2017 04:49:10 +0000"  >&lt;p&gt;Problem seems to exist when running on mono installed inside&#160;Ubuntu for Windows on Windows 10 as well:&lt;/p&gt;

&lt;p&gt;Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Tue Jan  3 11:48:26 UTC 2017)&lt;br/&gt;
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com&lt;br/&gt;
        TLS:           __thread&lt;br/&gt;
        SIGSEGV:       altstack&lt;br/&gt;
        Notifications: epoll&lt;br/&gt;
        Architecture:  amd64&lt;br/&gt;
        Disabled:      none&lt;br/&gt;
        Misc:          softdebug&lt;br/&gt;
        LLVM:          supported, not enabled.&lt;br/&gt;
        GC:            sgen&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|hsungf:</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>