[wp-trac] [WordPress Trac] #29957: Hardcoded value of $chunk_size variable in class-IXR.php in wp-includes
WordPress Trac
noreply at wordpress.org
Tue Oct 14 17:45:17 UTC 2014
#29957: Hardcoded value of $chunk_size variable in class-IXR.php in wp-includes
--------------------------+-----------------------------
Reporter: ankit.gade@… | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Variable $chunk_size is used to restrict RAM usage to parse xml-rpc
response message if the message is very large.
This variable value has been hard coded to 262144 (256 Kb). A filter
should be provided for setting value of this variable.
It has following advantages.
1. If message is large around 4-5 Mb, then getResponse() method of
IXR_Client returns null, we can avoid this situation by setting
$chunk_size to higher value.
2. If server configuration is well versed, for example: If we have 32 GB
RAM on server then allotting 5-8 Mb to $chunk_size should not be an issue
and for the same filter can be used.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29957>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list