<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:45 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-199] Socket reads not checked for IO errors, e.g. timeouts</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-199</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;mongo.c:315 in mongo_read_response&lt;/p&gt;

&lt;p&gt;    mongo_env_read_socket( conn, &amp;amp;head, sizeof( head ) );&lt;br/&gt;
    mongo_env_read_socket( conn, &amp;amp;fields, sizeof( fields ) );&lt;/p&gt;

&lt;p&gt;These socket read ops are not checked for an error, e.g., timeout.&lt;/p&gt;

&lt;p&gt;The function ignores the error, will probably be out-of-sync, and will carry on with garbage.  The read ops should be checked and appropriate action taken, probably closing the socket since message will be out-of-sync and the socket no longer useful.&lt;/p&gt;</description>
                <environment></environment>
        <key id="66846">CDRIVER-199</key>
            <summary>Socket reads not checked for IO errors, e.g. timeouts</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="gjmurakami">Gary Murakami</assignee>
                                    <reporter username="gjmurakami">Gary Murakami</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Feb 2013 21:29:06 +0000</created>
                <updated>Wed, 19 Oct 2016 14:14:57 +0000</updated>
                            <resolved>Fri, 1 Mar 2013 06:36:04 +0000</resolved>
                                    <version>0.7</version>
                                    <fixVersion>0.8.1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="279305" author="gjmurakami" created="Fri, 1 Mar 2013 19:38:48 +0000"  >&lt;p&gt;Note that the current C driver code is (highly) inefficient in terms of system call socket reads - mongo_read_response takes three socket recv calls to do what should be done more optimally with one recv.  The mongo_read_response function should be revisited to at least reduce the above two reads to one.  Any future rewrite should pay careful attention to system calls and mallocs.&lt;/p&gt;</comment>
                            <comment id="278773" author="auto" created="Fri, 1 Mar 2013 06:24:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-01T06:23:51Z&apos;, u&apos;name&apos;: u&apos;Gary Murakami&apos;, u&apos;email&apos;: u&apos;gary.murakami@10gen.com&apos;}
&lt;p&gt;Message: check all socket reads and return value on error&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-199&quot; title=&quot;Socket reads not checked for IO errors, e.g. timeouts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-199&quot;&gt;&lt;del&gt;CDRIVER-199&lt;/del&gt;&lt;/a&gt; Socket reads not checked for IO errors, e.g. timeouts&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/32875065e9743869742d7510263cdcd7de14aa61&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/32875065e9743869742d7510263cdcd7de14aa61&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </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|hrmfi7:</customfieldvalue>

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