BUG/MEDIUM: lua: socket timeouts are not applied
authorCyril Bonté <cyril.bonte@free.fr>
Fri, 17 Aug 2018 21:51:02 +0000 (23:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Aug 2018 22:23:52 +0000 (00:23 +0200)
commit7bb634549794298fc701d33efd93c7289dcf9cb7
tree823970ac2cff9fbc7950d1ffc20f77f7bc2343eb
parent6aab7378354ad704fed1e14fff256e2d74f60090
BUG/MEDIUM: lua: socket timeouts are not applied

Sachin Shetty reported that socket timeouts set in LUA code have no effect.
Indeed, connect timeout is never modified and is always set to its default,
set to 5 seconds. Currently, this patch will apply the specified timeout
value to the connect timeout.
For the read and write timeouts, the issue is that the timeout is updated but
the expiration dates were not updated.

This patch should be backported up to the 1.6 branch.
src/hlua.c