summaryrefslogtreecommitdiff
path: root/contrib/epee/include/net/http_protocol_handler.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-04-25 10:22:31 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-04-25 10:22:31 -0500
commit424e4de16b98506170db7b0d7d87a79ccf541744 (patch)
tree94c3bdc645883b373b93a6845a5692826cfcaf68 /contrib/epee/include/net/http_protocol_handler.h
parent809b13192b05e671edbd3bdff389747db22770c7 (diff)
parentc624d05de6b59fdd4b249ecd27e86d08c8684ffb (diff)
downloadmonzero-core-0.17.3.2.tar.gz
monzero-core-0.17.3.2.tar.xz
monzero-core-0.17.3.2.zip
Merge pull request #8276v0.17.3.2
c624d05 add a sanity check to RPC input data size (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include/net/http_protocol_handler.h')
-rw-r--r--contrib/epee/include/net/http_protocol_handler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/epee/include/net/http_protocol_handler.h b/contrib/epee/include/net/http_protocol_handler.h
index a29f141e8..e84a373d7 100644
--- a/contrib/epee/include/net/http_protocol_handler.h
+++ b/contrib/epee/include/net/http_protocol_handler.h
@@ -56,6 +56,7 @@ namespace net_utils
std::string m_folder;
std::vector<std::string> m_access_control_origins;
boost::optional<login> m_user;
+ size_t m_max_content_length{std::numeric_limits<size_t>::max()};
critical_section m_lock;
};
@@ -142,6 +143,7 @@ namespace net_utils
config_type& m_config;
bool m_want_close;
size_t m_newlines;
+ size_t m_bytes_read;
protected:
i_service_endpoint* m_psnd_hndlr;
t_connection_context& m_conn_context;