]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC: lua: Be explicit with the Reply object limits
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Nov 2021 17:39:51 +0000 (18:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Nov 2021 17:49:46 +0000 (18:49 +0100)
commit7855b1973437926ee89be8c8e4620d627712cc81
tree3c1bca57d56153c4992f528d174e5ef717514783
parent2702560d7be9340df8b1ff31528187cd228e975b
DOC: lua: Be explicit with the Reply object limits

In HTTP, when a lua action is evaluated, a reply object can be used to send
a response to the client and interrupt the transaction. This reply object is
converted into HTX and is limited to the response channel buffer. Its size,
once converted, cannot exceed the buffer size. There is no streaming at this
stage. However, this limitation was not documented.

Note that, for now, there is no easy way to know if the reply will fit or
not int the response channel buffer. Thus the reply must be reasonably
small. Otherwise a 500-Internal-Error message is returned.

This patch is related to the issue #1447. It may be backported as far as
2.2.
doc/lua-api/index.rst