<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:38 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-3639] Connection failure may take 1-2s when connecting to the wrong address on Windows</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3639</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;On Windows, attempted connections to the wrong address can take 1-2s to fail. I observed this when connecting to a mongod that was not bound to IPv6 (i.e. no&#160; --ipv6 flag passed).&lt;/p&gt;

&lt;p&gt;For single-threaded monitoring, this is mitigated by happy eyeballs. But for establishing multi-threaded application connections, this could appear as a 1-2s block. After &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3625&quot; title=&quot;Multi-threaded scanning should scan servers independently&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3625&quot;&gt;&lt;del&gt;CDRIVER-3625&lt;/del&gt;&lt;/a&gt;, this will also effect multi-threaded monitoring.&lt;/p&gt;

&lt;p&gt;With some added debug logging, the delay occurs in the call to &quot;select&quot; here:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/master/src/libmongoc/src/mongoc/mongoc-socket.c#L207&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/blob/master/src/libmongoc/src/mongoc/mongoc-socket.c#L207&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Capturing traffic with wireshark shows repeated TCP retransmits (capture file attached).&lt;/p&gt;

&lt;p&gt;This branch includes more logging and a simplified example-client to reproduce:&#160;&lt;a href=&quot;https://github.com/kevinAlbs/mongo-c-driver/tree/slow-select&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/kevinAlbs/mongo-c-driver/tree/slow-select&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1331461">CDRIVER-3639</key>
            <summary>Connection failure may take 1-2s when connecting to the wrong address on Windows</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                            <label>bg-rf</label>
                            <label>neweng</label>
                            <label>platform-problems</label>
                    </labels>
                <created>Tue, 28 Apr 2020 15:21:06 +0000</created>
                <updated>Mon, 5 Feb 2024 18:56:42 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3059232" author="kevin.albertson" created="Tue, 28 Apr 2020 18:48:59 +0000"  >&lt;p&gt;This is likely the same behavior described in&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/PYTHON-356&quot; title=&quot;Windows localhost connection slowdowns.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PYTHON-356&quot;&gt;&lt;del&gt;PYTHON-356&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1691268">CDRIVER-3965</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="40212">PYTHON-356</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="257806" name="slow-select.pcapng" size="1976" author="kevin.albertson@mongodb.com" created="Tue, 28 Apr 2020 16:25:33 +0000"/>
                    </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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-3870</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx5hhj:</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>