Re: lua socket api settimeout in seconds vs. milliseconds

2017-11-09 Thread Nick Galbreath
at 12:45 AM, Adis Nezirovic <aneziro...@haproxy.com> wrote: > 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 > > co

Re: lua socket api settimeout in seconds vs. milliseconds

2017-11-09 Thread Nick Galbreath
I'll read CONTRIBUTING, and set up my dev env, try a patch, and report back appropriately. regards, n On Thu, Nov 9, 2017 at 8:37 PM, Willy Tarreau <w...@1wt.eu> wrote: > Hi Nick, > > On Thu, Nov 09, 2017 at 08:27:29PM -0800, Nick Galbreath wrote: > > Hello Adis, > > >

lua socket api settimeout in seconds vs. milliseconds

2017-11-07 Thread Nick Galbreath
Hello, Thanks for a great Lua API! 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