+
+ // 256Kb, parse in chunks to avoid the RAM usage on very large messages
+ $chunk_size = 262144;
+
+ /**
+ * Filter the chunk size that can be used to parse an XML-RPC reponse message.
+ *
+ * @since 4.4.0
+ *
+ * @param int $chunk_size Chunk size to parse in bytes.
+ */
+ $chunk_size = apply_filters( 'xmlrpc_chunk_parsing_size', $chunk_size );
+