Skip to content

Ask for an XMLRPC size limit rtorrent accepts - #3260

Merged
xirvik merged 1 commit into
Novik:masterfrom
xirvik:fix/xmlrpc-size-limit-value
Sep 5, 2026
Merged

Ask for an XMLRPC size limit rtorrent accepts#3260
xirvik merged 1 commit into
Novik:masterfrom
xirvik:fix/xmlrpc-size-limit-value

Conversation

@xirvik

@xirvik xirvik commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

php/settings.php asks for 67108863. rtorrent 0.16.22 refuses it -- "XMLRPC size limit cannot exceed the SCGI content size limit" -- so since #3257 sent the request on its own it fails quietly and the limit stays at the default of 524288. Torrent files travel through XMLRPC in load.raw_start, so on 0.16.22 only small ones can be added.

The value was never reachable on any version. SCgiTask::max_content_size is (2 << 23) in 0.16.21 and 0.16.22 alike and scgi_task.cc refuses any request whose CONTENT_LENGTH exceeds it: on 0.16.21 a request declaring 16777217 is closed unanswered while 16777216 is served. 0.16.22 only began refusing to configure a size its transport was never going to carry.

16777216 is that ceiling. Both versions accept it, it raises the limit where 67108863 left it at the default, and it is already the maximum php/xmlrpc_proxy.php lets a caller ask for.

php/settings.php asks for 67108863. rtorrent 0.16.22 refuses it --
"XMLRPC size limit cannot exceed the SCGI content size limit" -- so
since Novik#3257 sent the request on its own it fails quietly and the limit
stays at the default of 524288. Torrent files travel through XMLRPC in
load.raw_start, so on 0.16.22 only small ones can be added.

The value was never reachable on any version. SCgiTask::max_content_size
is (2 << 23) in 0.16.21 and 0.16.22 alike and scgi_task.cc refuses any
request whose CONTENT_LENGTH exceeds it: on 0.16.21 a request declaring
16777217 is closed unanswered while 16777216 is served. 0.16.22 only
began refusing to configure a size its transport was never going to
carry.

16777216 is that ceiling. Both versions accept it, it raises the limit
where 67108863 left it at the default, and it is already the maximum
php/xmlrpc_proxy.php lets a caller ask for.
@xirvik
xirvik merged commit 6ae4686 into Novik:master Sep 5, 2026
8 checks passed
@xirvik
xirvik deleted the fix/xmlrpc-size-limit-value branch September 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant