<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:34 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-770] Continue writing until all bytes have been written</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-770</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/socket/src/mongoc/mongoc-stream.c#L299&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;writev_full()&lt;/a&gt; we should loop until r == total_bytes, rather then fail right away.&lt;/p&gt;

&lt;p&gt;Unless r &amp;lt;= 0 we should resume writing from the r position, so advancing the iovec and quick dancing would be needed.&lt;/p&gt;

&lt;p&gt;The expiration also need to be confirmed &amp;#8211; if now() is &amp;gt; expire then abort and fail.&lt;/p&gt;</description>
                <environment></environment>
        <key id="223476">CDRIVER-770</key>
            <summary>Continue writing until all bytes have been written</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="bjori">Hannes Magnusson</assignee>
                                    <reporter username="bjori">Hannes Magnusson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 Jul 2015 19:13:13 +0000</created>
                <updated>Wed, 19 Oct 2016 14:15:11 +0000</updated>
                            <resolved>Mon, 28 Sep 2015 22:04:10 +0000</resolved>
                                                    <fixVersion>1.2-rc0</fixVersion>
                    <fixVersion>1.1.11</fixVersion>
                                    <component>libmongoc</component>
                    <component>network</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1018436" author="xgen-internal-githook" created="Mon, 31 Aug 2015 17:50:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-770&quot; title=&quot;Continue writing until all bytes have been written&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-770&quot;&gt;&lt;del&gt;CDRIVER-770&lt;/del&gt;&lt;/a&gt;: Return how much we did write since its OK to return short writes&lt;/p&gt;

&lt;p&gt;When we can&apos;t finish writing our entire buffered iovec, we must still&lt;br/&gt;
return how much we have successfully written so far, in case any of&lt;br/&gt;
the previous buffers finished.&lt;br/&gt;
Then we can regroup and recalculate from where we left off and retry in&lt;br/&gt;
case of an &lt;span class=&quot;error&quot;&gt;&amp;#91;WSA&amp;#93;&lt;/span&gt;EWOULDBLOCK or friends.&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/e863800079f3fdfc0f0abf6f22e098e5fa46ec26&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/e863800079f3fdfc0f0abf6f22e098e5fa46ec26&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1018435" author="xgen-internal-githook" created="Mon, 31 Aug 2015 17:50:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-770&quot; title=&quot;Continue writing until all bytes have been written&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-770&quot;&gt;&lt;del&gt;CDRIVER-770&lt;/del&gt;&lt;/a&gt;: BIO_clear_retry_flags()/BIO_set_retry_read() on the BIO we got, not point to&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/b95d5dfbdd9428129fad749cf5031f2438eac6d2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/b95d5dfbdd9428129fad749cf5031f2438eac6d2&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="217632">CDRIVER-756</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|hreavz:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="676">C Driver 2015Q2 sprint 6</customfieldvalue>
    <customfieldvalue id="699">C Driver 2015Q2 sprint 7</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>