<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:31 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-2534] Add test overrides for connect and recv to allow configurable delays</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2534</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The implementation of IPv6 (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1972&quot; title=&quot;Support IPv6 only hostnames&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1972&quot;&gt;&lt;del&gt;CDRIVER-1972&lt;/del&gt;&lt;/a&gt;) first tries connecting with IPv6, and if the &lt;tt&gt;connect&lt;/tt&gt; call has not completed by 250ms the connection for IPv4 is started.&lt;/p&gt;

&lt;p&gt;When testing, we needed to simulate the behavior of a &lt;tt&gt;connect&lt;/tt&gt; call not completing for some delay. The current solution is to have a the mock server &lt;tt&gt;bind&lt;/tt&gt; to a port, and delay before calling &lt;tt&gt;listen&lt;/tt&gt;. This prevents the client &lt;tt&gt;connect&lt;/tt&gt; from completing, but does not refuse the connection on macOS. On Linux this doesn&apos;t work, and instead clients are refused immediately while the server is not listening.&lt;/p&gt;

&lt;p&gt;An alternative is to use &lt;tt&gt;LD_PRELOAD&lt;/tt&gt; hooks to swap out connect() and recv() with functions that have configurable delays. See &lt;a href=&quot;https://github.com/mongodb/specifications/blob/847e1bd327e12b0a90df875c6bb70db888f02731/source/initial-dns-seedlist-discovery/tests/README.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Initial DNS Seedlist Discovery tests&lt;/a&gt; for more info on using &lt;tt&gt;LD_PRELOAD&lt;/tt&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="507054">CDRIVER-2534</key>
            <summary>Add test overrides for connect and recv to allow configurable delays</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="13203">Gone away</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Mar 2018 14:06:22 +0000</created>
                <updated>Fri, 27 Oct 2023 19:50:13 +0000</updated>
                            <resolved>Thu, 8 Mar 2018 19:47:37 +0000</resolved>
                                                    <fixVersion>1.10.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1827802" author="jesse" created="Thu, 8 Mar 2018 19:47:37 +0000"  >&lt;p&gt;We found a better idea, replacing the &quot;poll&quot; implementation within the relevant tests.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="341575">CDRIVER-1972</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|htjbhr:</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>