Added a TODO on recordio::Decoder for EOF semantics. Review: https://reviews.apache.org/r/37326
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4c3da3dd Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4c3da3dd Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/4c3da3dd Branch: refs/heads/master Commit: 4c3da3dd7b377a18449d31145595446bf8057edf Parents: 7d16673 Author: Benjamin Mahler <[email protected]> Authored: Mon Aug 10 16:09:05 2015 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Mon Aug 10 17:41:19 2015 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/3rdparty/stout/include/stout/recordio.hpp | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/4c3da3dd/3rdparty/libprocess/3rdparty/stout/include/stout/recordio.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/recordio.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/recordio.hpp index e3dc00a..b9eff3c 100644 --- a/3rdparty/libprocess/3rdparty/stout/include/stout/recordio.hpp +++ b/3rdparty/libprocess/3rdparty/stout/include/stout/recordio.hpp @@ -94,6 +94,9 @@ public: * Returns an Error if the data contains an invalid length * header, at which point the decoder will return Error for * all subsequent calls. + * + * TODO(bmahler): Allow the caller to signal EOF, this allows + * detection of invalid partial data at the end of the input. */ Try<std::deque<Try<T>>> decode(const std::string& data) {
