rtorrent icon indicating copy to clipboard operation
rtorrent copied to clipboard

Max SCGI content size too small

Open lps-rocks opened this issue 5 years ago • 7 comments

https://github.com/rakshasa/rtorrent/blob/f0207ce6548026853ec57ab26f2e57a872f223bb/src/rpc/scgi_task.h#L54

This limits a max raw.load to 2MB - Should be increased or be made into a user setting based setting to match the xmlrpc size since XMLRPC rides on top of this SCGI protocol handler.

lps-rocks avatar May 22 '19 14:05 lps-rocks

Looks like it's actually 2MB, but excellent find. I'd be in favor of setting the hard coded limit to something large like 32MB and letting network.xmlrpc.size_limit remain the sole user controlled setting.

kannibalox avatar May 23 '19 03:05 kannibalox

Looks like it's actually 2MB, but excellent find. I'd be in favor of setting the hard coded limit to something large like 32MB and letting network.xmlrpc.size_limit remain the sole user controlled setting.

Oops. Yup - i was off by one bit. I believe network.xmlrpc.size_limit has a maximum value of 16MB. I think synchronizing this limit with that one would be beneficial.

lps-rocks avatar May 23 '19 16:05 lps-rocks

I tested using a lager max_content_size 1 << 24 (16M), which would allow us to add a lager torrent (>2M) via xmlrpc. Only change network.xmlrpc.size_limit alone won't help.

xiayyu avatar May 28 '19 05:05 xiayyu

I tested using a lager max_content_size 1 << 24 (16M), which would allow us to add a lager torrent (>2M) via xmlrpc. Only change network.xmlrpc.size_limit alone won't help.

That's the exact setting I used too since the max setting for network.xmlrpc.size_limit is 16M

lps-rocks avatar May 28 '19 05:05 lps-rocks

@rakshasa - Can this be merged in as soon as possible since it severely breaks SCGI?

lps-rocks avatar Jun 03 '19 00:06 lps-rocks

@rakshasa - Can this be merged in as soon as possible since it severely breaks SCGI?

Make a pull request and I'll merge it.

rakshasa avatar Aug 23 '19 13:08 rakshasa

Fixed in 14d7121185a9efb66949e11a476e78e6933e857b

grigorescu avatar Jan 09 '22 22:01 grigorescu