<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08: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-112] No socket time out </title>
                <link>https://jira.mongodb.org/browse/CDRIVER-112</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;We are using Mongo &apos;C&apos; driver to insert objects in mongodb. Our problem is, the driver gets stucked indefinitely (saw for 30 mins) at recv and send socket calls. This happens when we turn off server running mongodb abruptly. &lt;br/&gt;
As we analyzed problem deeper, we observed that &quot;Mongo &apos;C&apos; driver does not have socket timeout&quot;. &lt;br/&gt;
Will it make client hang always, when server abruptly terminates socket connection?&lt;/p&gt;</description>
                <environment>windows 7 and  64 bit debian </environment>
        <key id="29847">CDRIVER-112</key>
            <summary>No socket time out </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="kbanker">Kyle Banker</assignee>
                                    <reporter username="jitendra908">jitendra</reporter>
                        <labels>
                            <label>hang</label>
                    </labels>
                <created>Fri, 3 Feb 2012 17:06:52 +0000</created>
                <updated>Wed, 3 May 2017 22:13:59 +0000</updated>
                            <resolved>Fri, 23 Mar 2012 17:04:30 +0000</resolved>
                                    <version>0.4</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="87371" author="kbanker" created="Fri, 10 Feb 2012 19:22:59 +0000"  >&lt;p&gt;I don&apos;t see any problem with setting the socket op timeout.&lt;/p&gt;</comment>
                            <comment id="86630" author="jitendra908" created="Wed, 8 Feb 2012 19:43:43 +0000"  >&lt;p&gt;What is a good practice to follow in this case? &lt;br/&gt;
Whether to use socket timeout in application so that atleast socket calls would return.&lt;br/&gt;
or not to use socket timeout?&lt;/p&gt;</comment>
                            <comment id="85401" author="kbanker" created="Sun, 5 Feb 2012 07:54:16 +0000"  >&lt;p&gt;Are you running on Linux? If you compile like so:&lt;/p&gt;

&lt;p&gt;scons --use-platform=LINUX&lt;/p&gt;

&lt;p&gt;You&apos;ll then have socket timeout support using the following function:&lt;/p&gt;

&lt;p&gt;int mongo_set_op_timeout( mongo *conn, int millis );&lt;/p&gt;

&lt;p&gt;See here:&lt;br/&gt;
&lt;a href=&quot;http://api.mongodb.org/c/current/api/mongo_8h_source.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://api.mongodb.org/c/current/api/mongo_8h_source.html&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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|hrh6lr:</customfieldvalue>

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