<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51: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>[JAVA-163] Support Unix Domain Sockets</title>
                <link>https://jira.mongodb.org/browse/JAVA-163</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Add support for unix domain sockets (AF_UNIX) &amp;#8211; potentially with junixsocket (&lt;a href=&quot;http://code.google.com/p/junixsocket/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://code.google.com/p/junixsocket/&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;This dep should probably be done in way where it is optional. This can easily be done by checking for the existence of the classes used for unix domain sockets before using them. This would make it an optional runtime dep.; it will still be a compile time dep.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13048">JAVA-163</key>
            <summary>Support Unix Domain Sockets</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="9">Done</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Sep 2010 02:09:13 +0000</created>
                <updated>Tue, 20 Mar 2018 13:49:27 +0000</updated>
                            <resolved>Tue, 20 Mar 2018 13:03:27 +0000</resolved>
                                                    <fixVersion>3.7.0</fixVersion>
                                    <component>Connection Management</component>
                                        <votes>6</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="1839461" author="xgen-internal-githook" created="Tue, 20 Mar 2018 13:49:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;name&apos;: &apos;Ross Lawley&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: Test: Limit Java version for UnixServerAddress tests&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-163&quot; title=&quot;Support Unix Domain Sockets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-163&quot;&gt;&lt;del&gt;JAVA-163&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f54b4450a163de1ec3c6094afd6a9be29a28b4dd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f54b4450a163de1ec3c6094afd6a9be29a28b4dd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1839413" author="xgen-internal-githook" created="Tue, 20 Mar 2018 13:02:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;name&apos;: &apos;Ross Lawley&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: Complete unix socket support&lt;/p&gt;

&lt;p&gt;Ensure jnr library is optional via UnixServerAddress&lt;br/&gt;
Added unix socket support to the connection string.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-163&quot; title=&quot;Support Unix Domain Sockets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-163&quot;&gt;&lt;del&gt;JAVA-163&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e1680a252ae5122ac77f942eed4625d589d4ec72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e1680a252ae5122ac77f942eed4625d589d4ec72&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1839412" author="xgen-internal-githook" created="Tue, 20 Mar 2018 13:02:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;joan@profuzdigital.com&apos;, &apos;name&apos;: &apos;Joan Karadimov&apos;, &apos;username&apos;: &apos;joankaradimov&apos;}
&lt;p&gt;Message: Support Unix Domain Sockets via jnr-unixsocket&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-163&quot; title=&quot;Support Unix Domain Sockets&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-163&quot;&gt;&lt;del&gt;JAVA-163&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/d2ff8e12a3352d76a297178f75177d7093295ebe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/d2ff8e12a3352d76a297178f75177d7093295ebe&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1675866" author="joan.karadimov" created="Mon, 18 Sep 2017 20:19:05 +0000"  >&lt;p&gt;I&apos;ve opened this pull request in github with a Unix domain sockets implementation:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/401&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/401&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It has the following features:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;It requires jnr-unixsocket, but it keeps it an optional dependency&lt;/li&gt;
	&lt;li&gt;It does not require the installation of additional native libraries&lt;/li&gt;
	&lt;li&gt;It fails &lt;span class=&quot;error&quot;&gt;&amp;#91;kind of&amp;#93;&lt;/span&gt; gracefully on Windows (error reporting can be improved)&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1566414" author="alien" created="Sun, 7 May 2017 15:26:20 +0000"  >&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Sorry for the late answer, I hadn&apos;t configured email notifications for this Jira.&lt;/p&gt;

&lt;p&gt;Well, there&apos;s nothing special in my use case - I want to connect to a local MongoDB instance running on the same machine as the Java application. Unix Domain Sockets have (way?) better performance and throughput than TCP ones, and the connection to a DB is definitely something one would want to optimize, so why not use domain sockets? Is there any reason for this to not be implemented (especially if it&apos;s not a big deal)?&lt;/p&gt;</comment>
                            <comment id="1556569" author="jeff.yemin" created="Mon, 24 Apr 2017 18:59:22 +0000"  >&lt;p&gt;Hi Boris,&lt;/p&gt;

&lt;p&gt;No, we don&apos;t have any current plans to implement support for Unix Domain Sockets.  Can you tell us about your use case for it?&lt;/p&gt;</comment>
                            <comment id="1556089" author="alien" created="Mon, 24 Apr 2017 13:54:46 +0000"  >&lt;p&gt;Any plans for this to be implemented? I tried implementing it only in our code but ServerAddress seems to be hardcoded in too many places and just doing a:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; MongoClient(&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; ServerAddress(&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; AFUNIXSocketAddress(&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; File(host))), ...)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Doesn&apos;t work. For example, in version 3.4.2:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/r3.4.2/driver-core/src/main/com/mongodb/connection/ClusterSettings.java#L106&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/r3.4.2/driver-core/src/main/com/mongodb/connection/ClusterSettings.java#L106&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Maybe if this and similar calls are not using specific overloads of ServerAddress which are for IP/port, domain sockets could be easily implemented in client code.&lt;/p&gt;</comment>
                            <comment id="822395" author="tchristopher" created="Thu, 5 Feb 2015 16:39:32 +0000"  >&lt;p&gt;The junixsocket library is evolved since what is shown in &lt;a href=&quot;http://code.google.com/p/junixsocket/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://code.google.com/p/junixsocket/&lt;/a&gt;. It no longer requires native library files to be manually placed in the system&apos;s java library path. You just need to include these dependencies.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mvnrepository.com/artifact/com.kohlschutter.junixsocket/junixsocket-common/2.0.4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mvnrepository.com/artifact/com.kohlschutter.junixsocket/junixsocket-common/2.0.4&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://mvnrepository.com/artifact/com.kohlschutter.junixsocket/junixsocket-native-common/2.0.4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://mvnrepository.com/artifact/com.kohlschutter.junixsocket/junixsocket-native-common/2.0.4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="379876" author="jeff.yemin" created="Fri, 12 Jul 2013 15:49:04 +0000"  >&lt;p&gt;In principle, should be able to do this with a custom ConnectionFactory in 3.0 branch.  See &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/3.0.x/driver/src/main/org/mongodb/connection/ConnectionFactory.java&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/3.0.x/driver/src/main/org/mongodb/connection/ConnectionFactory.java&lt;/a&gt;.  But I doubt we&apos;ll put this in the driver directly since it requires a 3rd party library unless we add support for optional dependencies.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="88088">JAVA-941</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|htdbdz:</customfieldvalue>

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