]> git.proxmox.com Git - pve-common.git/commit
REST handler: make API return validation opt-in
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 4 Apr 2021 15:05:56 +0000 (17:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Apr 2021 15:49:52 +0000 (17:49 +0200)
commit1b44e6fe0f8eefbfc541470fb4bffb56eab074da
treeb4b2771dd5dc34bba395aadc296ff18dce8a166d
parent4a6f8872a49418a8e4d62004ee86c792148d31ec
REST handler: make API return validation opt-in

It has not shown any real value in the last decade+ it was enabled,
and it can actually add quite some performance overhead. E.g., if an
API endpoint returns a few 100k of relatively simple entries we can
easily require several seconds, even tens of seconds, to run the
return validation - making it easier to run into timeouts along the
transmit path to the client.

The CLI handler has it still enabled, normally there's no timeout
there as no HTTP transmit path is involved, and d.csapak had a slight
preference for that in an off-list discussion.

The actual implementations in PMG or PVE could enable it too if
running under debug mode.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/RESTHandler.pm