You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by czzmmc <no...@github.com> on 2020/07/10 06:56:09 UTC

[apache/incubator-teaclave] fix downloading large remote input file bug (#389)

## Description

Change write method to write_all, in order to fix downloading large remote input file bug.

According to [tokio doc](https://docs.rs/tokio/0.1.22/tokio/prelude/trait.Write.html), method write cannot guarantee writing the whole buffer, but method write_all will continuously call write until there is no more data to be written or an error of non-ErrorKind::Interrupted kind is returned. 


You can view, comment on, or merge this pull request online at:

  https://github.com/apache/incubator-teaclave/pull/389

-- Commit Summary --

  * fix downloading large remote input file bug

-- File Changes --

    M file_agent/src/agent.rs (2)

-- Patch Links --

https://github.com/apache/incubator-teaclave/pull/389.patch
https://github.com/apache/incubator-teaclave/pull/389.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/pull/389

Re: [apache/incubator-teaclave] fix downloading large remote input file bug (#389)

Posted by Mingshen Sun <no...@github.com>.
Merged #389 into master.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/pull/389#event-3534852944