X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fbeast%2Fhttp%2Fbasic_parser.hpp;h=6f9bf8a89b0c4b9242b96df9c7146dd7d30b2394;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=9cff88b892274f4a15be4fd4114b6f9b8d65fb24;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/beast/http/basic_parser.hpp b/ceph/src/boost/boost/beast/http/basic_parser.hpp index 9cff88b89..6f9bf8a89 100644 --- a/ceph/src/boost/boost/beast/http/basic_parser.hpp +++ b/ceph/src/boost/boost/beast/http/basic_parser.hpp @@ -69,8 +69,10 @@ template class basic_parser : private detail::basic_parser_base { - std::uint64_t body_limit_ = - default_body_limit(is_request{}); // max payload body + boost::optional + body_limit_ = + boost::optional( + default_body_limit(is_request{})); // max payload body std::uint64_t len_ = 0; // size of chunk or body std::uint64_t len0_ = 0; // content length if known std::unique_ptr buf_; // temp storage @@ -289,10 +291,11 @@ public: The default limit is 1MB for requests and 8MB for responses. - @param v The payload body limit to set + @param v An optional integral value representing the body limit. + If this is equal to `boost::none`, then the body limit is disabled. */ void - body_limit(std::uint64_t v) + body_limit(boost::optional v) { body_limit_ = v; }