<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:20:29 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-4284] Empty OpenSSL error reported when connecting to a load balancer fronting a nonexistent server</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4284</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;This came up in &lt;a href=&quot;https://evergreen.mongodb.com/task_log_raw/mongo_php_driver_test_loadBalanced__versions~latest_php_edge_versions~latest_stable_os~debian92_test_loadBalanced_patch_f5b5ef25c544726e419c1e3c11bc2d69f44789d6_61fb07570ae60650cae1e6a6_22_02_02_22_36_08/0?type=T&amp;amp;text=true&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this patch build&lt;/a&gt; for &lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-2047&quot; title=&quot;Update load balancer tests to support dedicated load balancer port&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-2047&quot;&gt;&lt;del&gt;PHPC-2047&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In that patch build, I neglected to specify the correct mongo orchestration config, so a sharded cluster (with SSL) was launched with two mongos  servers listening on ports 27017 and 27018. The load balancer on port 8000 was proxying a single mongos on port 27050 (which did not actually exist).&lt;/p&gt;

&lt;p&gt;The connection string was: mongodb://127.0.0.1:8000/?loadBalanced=true&amp;amp;ssl=true&amp;amp;sslallowinvalidcertificates=true&lt;/p&gt;

&lt;p&gt;Most tests in the patch build were skipped due to the following error:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Could not establish stream for node 127.0.0.1:8000: &lt;span class=&quot;error&quot;&gt;&amp;#91;TLS handshake failed: error:00000000:lib(0):func(0):reason(0) calling hello on &amp;#39;127.0.0.1:8000&amp;#39;&amp;#93;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/openssl/openssl/issues/1272&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;openssl/openssl#1272&lt;/a&gt; suggests that &quot;error:00000000:lib(0):func(0):reason(0)&quot; indicates that there is no OpenSSL error to report. Looking at the format of that error message, I believe this topology scanner error message originates from &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.21.0/src/libmongoc/src/mongoc/mongoc-stream-tls-openssl.c#L634&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this line in &lt;tt&gt;_mongoc_stream_tls_openssl_handshake&lt;/tt&gt;&lt;/a&gt; when &lt;tt&gt;_mongoc_stream_tls_openssl_cert_verify_failed&lt;/tt&gt; returns &lt;tt&gt;false&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I imagine &lt;em&gt;some&lt;/em&gt; error is to be expected here, since the server is clearly inaccessible and cannot complete a handshake, but it seems odd that libmongoc would report an empty OpenSSL error.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1977150">CDRIVER-4284</key>
            <summary>Empty OpenSSL error reported when connecting to a load balancer fronting a nonexistent server</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13201">Fixed</resolution>
                                        <assignee username="ezra.chung@mongodb.com">Ezra Chung</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Feb 2022 22:18:57 +0000</created>
                <updated>Sat, 28 Oct 2023 11:28:13 +0000</updated>
                            <resolved>Wed, 9 Feb 2022 20:14:39 +0000</resolved>
                                    <version>1.20.1</version>
                                    <fixVersion>1.22.0</fixVersion>
                    <fixVersion>1.22.0-beta0</fixVersion>
                                    <component>libmongoc</component>
                    <component>tls</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4346136" author="xgen-internal-githook" created="Wed, 9 Feb 2022 20:14:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ezra Chung&apos;, &apos;email&apos;: &apos;88335979+eramongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;eramongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4284&quot; title=&quot;Empty OpenSSL error reported when connecting to a load balancer fronting a nonexistent server&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4284&quot;&gt;&lt;del&gt;CDRIVER-4284&lt;/del&gt;&lt;/a&gt; Avoid empty OpenSSL error condition on handshake failure (#943)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Add conditions to handle lack of error info by OpenSSL library&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;Rename cert_verify_failed to set_verify_cert_error&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/db4c6c2a7d82b9d96c02c17fe38f979842982396&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/db4c6c2a7d82b9d96c02c17fe38f979842982396&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1974592">PHPC-2047</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|i027j3:</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>