Subject: | Documentation shold be fixed. (code starts to crash) |
In your documentation:
https://metacpan.org/pod/JSON#max_depth
It looks like we should pass array ref with one element:
->max_depth([600])
Our developers follow that DOC and it seems cause memory leaks somewhere in code. Because we get:
Cannot allocate memory: AH00159: fork: Unable to fork new process
Alsow this cause apache+mod_perlv1 to crash while parsing JSON string from requests to API
->max_depth(600) - resolves that.
In this context, as this doc has, it is ambigious to understand that [] means that this argument is optional