Reject an XMLRPC size limit above the SCGI content size limit.

This commit is contained in:
xirvik
2026-08-26 14:27:06 +00:00
committed by Jari Sundell
parent c8da93bd30
commit 16bfaf2694
3 changed files with 9 additions and 4 deletions
+8
View File
@@ -167,6 +167,14 @@ RpcManager::cleanup() {
m_jsonrpc.cleanup();
}
void
RpcManager::set_size_limit(uint64_t size) {
if (size > SCgiTask::max_content_size)
throw torrent::input_error("XMLRPC size limit cannot exceed the SCGI content size limit.");
m_xmlrpc.set_size_limit(size);
}
void
RpcManager::insert_command(const char* name, const char* parm, const char* doc) {
m_xmlrpc.insert_command(name, parm, doc);