]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: add an optional timeout to AppletTCP:receive()
authorWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2025 15:19:34 +0000 (16:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2025 15:19:34 +0000 (16:19 +0100)
commit19e48f237f864347678845f03eb5e01c08130efe
tree463b7c071997754649264b6f608fb95e6a4e5933
parent557f62593fe3a569819959e735344c0fe1cdb910
MINOR: hlua: add an optional timeout to AppletTCP:receive()

TCP services might want to be interactive, and without a timeout on
receive(), the possibilities are a bit limited. Let's add an optional
timeout in the 3rd argument to possibly limit the wait time. In this
case if the timeout strikes before the requested size is complete,
a possibly incomplete block will be returned.
doc/lua-api/index.rst
src/hlua.c