You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Bernd Mathiske <be...@mesosphere.io> on 2015/01/18 07:52:18 UTC
Re: Review Request 25623: MESOS-1794: allow CURL download into any FD
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/25623/#review68555
-----------------------------------------------------------
3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp
<https://reviews.apache.org/r/25623/#comment112862>
Please output the path in question here to compensate for the change in line 106.
- Bernd Mathiske
On Sept. 14, 2014, 11:25 a.m., Kamil Domanski wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/25623/
> -----------------------------------------------------------
>
> (Updated Sept. 14, 2014, 11:25 a.m.)
>
>
> Review request for mesos, Adam B, Benjamin Hindman, Bernd Mathiske, and Vinod Kone.
>
>
> Bugs: MESOS-1794
> https://issues.apache.org/jira/browse/MESOS-1794
>
>
> Repository: mesos-git
>
>
> Description
> -------
>
> This divides {{Try<int> net::download(const std::string& url, const std::string& path)}} into three overloads:
>
> 1. Try<int> net::download(const std::string& url, FILE* file) downloads a file and sends it to FILE stream
> 2. Try<int> net::download(const std::string& url, int fdout) opens a file stream based on a file descriptor and calls 1)
> 3. Try<int> net::download(const std::string& url, const std::string& path) opens a file at _path_ and passes the descriptor to 2), effectively working as before this change
>
> This will allow to download into any file descriptor, such as a pipe, e.g. directly to extraction, as proposed by Bernd Mathiske in MESOS-1667.
>
>
> Diffs
> -----
>
> 3rdparty/libprocess/3rdparty/stout/include/stout/net.hpp 7138bc2
>
> Diff: https://reviews.apache.org/r/25623/diff/
>
>
> Testing
> -------
>
> `cd 3rdparty/libprocess/ && make check` for compilation test only
>
> https://gist.github.com/kdomanski/f1d39266f6abc0f14f58 for operation test
>
>
> Thanks,
>
> Kamil Domanski
>
>