summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@odoo.com>2020-05-25 13:49:30 +0000
committerOlivier Dony <odo@odoo.com>2020-05-27 12:38:43 +0000
commit9a0d951cccab5457a99c7068b52de929523998cf (patch)
treea0fa19cb6b45a12b1a36dde0fc8623162c4051a5 /addons/web/static/src/js/views/basic/basic_controller.js
parentc90a1ae35397920543917951f20a301f4535e948 (diff)
[ADD] server: allow env variable to control HTTP socket timeout
As indicated in the comment, it's much preferred to perform response buffering at the reverse proxy level than to increase the socket timeout. It will free up HTTP workers for other requests faster, while the proxy does the work of buffering the stream on disk as needed. /!\ The timeout is also used to protect from accidental DoS effects in situations of low worker availability, due to idle connections caused e.g. by wkhtmltopdf's connection pooling. Setting a high timeout will make the protection less effective, so ensuring you have enough free HTTP workers at all times becomes critical. In our tests with nginx's defaut buffering on a typical hardware with SSD storage, buffering up to 1GB responses did not require any change of the socket timeout on the Odoo side, though your mileage may vary. See also nginx's `proxy_buffering` and `proxy_max_temp_file_size` config directives. OPW-2247730 See also: #20158 closes odoo/odoo#51982 X-original-commit: d78ea126b8d2a72ae626880b0ec64bb7a39a07ac Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions