Re: [PATCH] BUG/MINOR: lua: schedule socket task when lua connect() is called

2018-05-06 Thread Willy Tarreau
On Sun, May 06, 2018 at 02:33:46PM +0200, Thierry Fournier wrote: > I agree with Willy, this patch make sense. Thank you, now merged and backported. > In 1.6 version, the task is woken during the "hlua_socket_new" by the function > "stream_new". I test your code and ... segfault :-) The bug fix f

Re: [PATCH] BUG/MINOR: lua: schedule socket task when lua connect() is called

2018-05-06 Thread Thierry Fournier
> On 6 May 2018, at 06:32, Willy Tarreau wrote: > > Hi Pieter, > > On Sun, May 06, 2018 at 12:00:14AM +0200, PiBa-NL wrote: >> The parameters like server-address, port and timeout should be set before >> process_stream task is called to avoid the stream being 'closed' before it >> got initiali

Re: [PATCH] BUG/MINOR: lua: schedule socket task when lua connect() is called

2018-05-05 Thread Willy Tarreau
Hi Pieter, On Sun, May 06, 2018 at 12:00:14AM +0200, PiBa-NL wrote: > The parameters like server-address, port and timeout should be set before > process_stream task is called to avoid the stream being 'closed' before it > got initialized properly. This is most clearly visible when running with >

[PATCH] BUG/MINOR: lua: schedule socket task when lua connect() is called

2018-05-05 Thread PiBa-NL
Hi List, Thierry, Willy, Created another little patch. Hope this one fits all submission criteria. Regards, PiBa-NL (Pieter) From cc4adb62c55f268e9e74853f4a4893e2a3734aec Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sat, 5 May 2018 23:51:42 +0200 Subject: [PATCH] BUG/MINOR: lua: schedule socket