Bob,
Joseph,

author of haproxy-auth-request here.

Am 02.09.2018 um 00:12 schrieb Joseph Sible:
> Try removing the highlighted block of code:
> https://github.com/TimWolla/haproxy-auth-request/blob/e6a686e6f192200a6c7001c303b87d2d6e9d4788/auth-request.lua#L45-L51
> 
> It's a monkey-patch to haproxy's socket that you might not need.

Yes, it's obsolete as of haproxy 1.8.4. But I don't believe it to be the
cause of the issues. It looks like the monkey patched function itself is
given invalid parameters.

> On Fri, Aug 31, 2018 at 8:05 PM Computerisms Corporation
> <[email protected]> wrote:
>> https://www.mail-archive.com/[email protected]/msg28604.html and
>> https://www.mail-archive.com/[email protected]/msg28574.html, I am
>> lead to believe this should be an fixed in my apt-installed version of
>> haproxy 1.8.13-1.

Yes, see above.

>> I have been investigating, commenting code, and hacking by trial and
>> error to find a solution, but so far I am not able to get past this
>> point.  Clearly my skills and understanding are not yet where they need
>> to be, being relatively new to both haproxy and lua.
>>
>> It occurs that this could be a lua problem (as opposed to haproxy), but
>> according to what I have read and understood, it seems that this is
>> related to haproxy's implementation of lua more than lua itself.  Hence
>> I am asking here first.
>>
>> Wondering if anyone can offer some insight, or point me at some required
>> reading that might shed some light on this but isn't aimed at a
>> developer level of understanding?  I have read through
>> https://www.arpalert.org/haproxy-lua.html#h211 a time or two, but if
>> there is a shining light bulb in there it hasn't blinded me yet.
>>

I believe the issue might be that your version of LuaSocket calls
`settimeout` differently that I anticipated in haproxy-auth-request.
What version of LuaSocket are you using? Can you give your configuration?

Best regards
Tim Düsterhus

Reply via email to