<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09:01 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-290] Socket initialization problem Windows 7.</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-290</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I was trying to build the driver on Windows 7 with scons build utility but I was not able to connect the database with the following lines of code.&lt;/p&gt;

&lt;p&gt;  mongo conn&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;;&lt;br/&gt;
  int status = mongo_client( conn, &quot;127.0.0.1&quot;, 27017 );&lt;br/&gt;
  if( status != MONGO_OK ) {&lt;br/&gt;
      switch ( conn-&amp;gt;err ) &lt;/p&gt;
{
        case MONGO_CONN_NO_SOCKET:  printf( &quot;no socket\n&quot; ); return 1;
        case MONGO_CONN_FAIL:       printf( &quot;connection failed\n&quot; ); return 1;
        case MONGO_CONN_NOT_MASTER: printf( &quot;not master\n&quot; ); return 1;
      }
&lt;p&gt;  }&lt;/p&gt;


&lt;p&gt;I have traced the error receive MONGO_SOCKET_ERROR by tracing conn-&amp;gt;err. I have then initialized the socket on env.c file around line# 500 with adding some code. Now it works perfectly fine. &lt;/p&gt;

&lt;p&gt;To build the driver, I have avoided the scons and used a visual studio 2010 project. I am providing the working visual studio project here together with the codes that I have added. I have also used Preprocessor directive MONGO_USE__INT64 and MONGO_ENV_STANDARD.&lt;/p&gt;

&lt;p&gt;Please note that the after compilation the output files will be in Debug folder which are  mongo_driver.lib and mongo_driver.dll&lt;/p&gt;


&lt;p&gt;This is also mentionable that the same driver both works fine for OS X 10.6 and Linux 64. &lt;/p&gt;</description>
                <environment>windows 7, Visual Studio 2010</environment>
        <key id="111170">CDRIVER-290</key>
            <summary>Socket initialization problem Windows 7.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="klmahmood">Khalid Mahmood</reporter>
                        <labels>
                            <label>Windows</label>
                            <label>connection</label>
                            <label>driver</label>
                    </labels>
                <created>Sun, 16 Feb 2014 13:45:35 +0000</created>
                <updated>Wed, 3 May 2017 22:14:54 +0000</updated>
                            <resolved>Tue, 11 Mar 2014 19:51:58 +0000</resolved>
                                    <version>0.8.1</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="513611" author="christian.hergert@10gen.com" created="Tue, 11 Mar 2014 19:51:58 +0000"  >&lt;p&gt;Khalid,&lt;/p&gt;

&lt;p&gt;Cloasing, please submit a pull request on github for any patches you have.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;&amp;#8211; Christian&lt;/p&gt;</comment>
                            <comment id="507679" author="christian.hergert@10gen.com" created="Sat, 1 Mar 2014 10:23:05 +0000"  >&lt;p&gt;Hi Khalid,&lt;/p&gt;

&lt;p&gt;Development on the 0.8 series of the driver has relatively subsided. However, we may be able to apply your changes to the legacy branch if you can provided is a patch/diff.&lt;/p&gt;

&lt;p&gt;Thanks for your time,&lt;/p&gt;

&lt;p&gt;&amp;#8211; Christian&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="37860" name="mongo-c-driver-0.8.1_vs2010.zip" size="73728" author="klmahmood" created="Sun, 16 Feb 2014 13:45:35 +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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrw6fj:</customfieldvalue>

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