<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09:49 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>[CDRIVER-540] connectTimeoutMS (and probably others) option ignored unless in lower case</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-540</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;When specifying the connectTimeoutMS option e.g&lt;/p&gt;

&lt;p&gt;mongodb://localhost/test?connectTimeoutMS=100&lt;/p&gt;

&lt;p&gt;This option is ignored and the default of 10000 is used.&lt;/p&gt;

&lt;p&gt;This is due to this option being added internally under the name as specified (i.e mixed case) but when it is being checked for in mongoc-client.c::mongoc_client_connect_tcp() it is being searched for in lower case, i.e we have&lt;/p&gt;

&lt;p&gt;  94    if ((options = mongoc_uri_get_options (uri)) &amp;amp;&amp;amp;&lt;br/&gt;
  95        bson_iter_init_find (&amp;amp;iter, options, &quot;connecttimeoutms&quot;) &amp;amp;&amp;amp;&lt;/p&gt;

&lt;p&gt;   Above line is the problem.&lt;/p&gt;

&lt;p&gt;  96        BSON_ITER_HOLDS_INT32 (&amp;amp;iter)) {&lt;br/&gt;
  97       if (!(connecttimeoutms = bson_iter_int32(&amp;amp;iter))) &lt;/p&gt;
{
  98                          MONGOC_DEFAULT_CONNECTTIMEOUTMS);
  99          connecttimeoutms = MONGOC_DEFAULT_CONNECTTIMEOUTMS;
 100       }
&lt;p&gt; 101    }&lt;/p&gt;

&lt;p&gt;Using ?connecttimeoutms=100 works as expected. This will maybe effect more things, I haven&apos;t really looked further.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure what the intention is here. All the MongoDB documentation uses mixed case.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Andrew&lt;/p&gt;</description>
                <environment>CentOS 6.x / x86-64&lt;br/&gt;
&lt;br/&gt;
glibc 2.12 / gcc 4.4.7</environment>
        <key id="185967">CDRIVER-540</key>
            <summary>connectTimeoutMS (and probably others) option ignored unless in lower case</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ac000">Andrew Clayton</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Feb 2015 18:59:34 +0000</created>
                <updated>Wed, 19 Oct 2016 14:15:05 +0000</updated>
                            <resolved>Tue, 10 Mar 2015 19:26:11 +0000</resolved>
                                    <version> 1.0.2 </version>
                                    <fixVersion>1.1.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="837077" author="ac000" created="Wed, 25 Feb 2015 17:42:13 +0000"  >&lt;p&gt;Pull request here: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/178&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="836761" author="ac000" created="Wed, 25 Feb 2015 11:45:13 +0000"  >&lt;p&gt;OK, I guess it should be using bson_iter_init_find_case()&lt;/p&gt;

&lt;p&gt;I&apos;ll knock up a patch...&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|hrf7mv:</customfieldvalue>

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