On 11/07/2017 08:49 PM, Nick Galbreath wrote: > I have a question regarding the socket:settimeout function. > > It appears to only accept an integer value for seconds, but internally > converts to milliseconds (see below). > > Is there a reason to enforce whole seconds, or could this be relaxed to > accept a lua number (float/double).?
Hi Nick, HAProxy uses Lua 5.3 which has proper integers. There is already a similar situation where we have both, seconds and milliseconds (hlua_sleep/hlua_msleep), so maybe that's the best solution here too, just add another variant using milliseconds. Best regards, Adis